summaryrefslogtreecommitdiff
path: root/includes/funktionen.php
blob: fb63b7080c67d0ed238145fae0f7bcb5af8fefc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
  /* Schichtverplanung im Adminbereich */
  function Dsubstr($DateString, $re) {
    if ($re == 1)
      return substr($DateString, 0, 2);
    elseif ($re == 2)
      return substr($DateString, 3, 2);
    else
      return substr($DateString, 6, 4);
  }

  /* Schichtverplanung im Engelbereich */
  function engeldate($edate, $m) {
    if ($m == t)
      return substr($edate, 8, 2);
    elseif ($m == m)
      return substr($edate, 5, 2);
    elseif ($m == u)
      return substr($edate, 11, 5);
    else
      return substr($edate, 0, 4);
  }
?>