38 $LIB_DATE_PHP =
'$Id: Lib.Date.php,v 1.2 2003/08/18 15:46:42 eric Exp $';
43 return mktime(0, 0, 0, strftime(
"%m", $timestamp) , strftime(
"%d", $timestamp) , strftime(
"%Y", $timestamp));
48 return mktime(0, 0, 0, strftime(
"%m", $timestamp) , strftime(
"%d", $timestamp) + $inc, strftime(
"%Y", $timestamp));
53 $inc = ($daynumber - strftime(
"%w", $now)) % 7;
54 return mktime(0, 0, 0, strftime(
"%m", $now) , strftime(
"%d", $now) + $inc, strftime(
"%Y", $now));
59 $inc = (7 - strftime(
"%w", $now));
60 return mktime(0, 0, 0, strftime(
"%m", $now) , strftime(
"%d", $now) - $inc, strftime(
"%Y", $now));
79 return date(
"t", mktime(0, 0, 0, $m, 1, $y));
104 $nm = ($m == 12 ? 1 : $m + 1);
105 $ny = ($nm == 1 ? $y + 1 : $y);
110 $pm = ($m == 1 ? 12 : $m - 1);
111 $py = ($pm == 12 ? $y - 1 : $y);
116 return strftime(
"%W", $epoch);
122 return strftime(
"%W", $epoch);