36 $LIB_DATE_PHP =
'$Id: Lib.Date.php,v 1.2 2003/08/18 15:46:42 eric Exp $';
41 return mktime(0, 0, 0, strftime(
"%m", $timestamp) , strftime(
"%d", $timestamp) , strftime(
"%Y", $timestamp));
46 return mktime(0, 0, 0, strftime(
"%m", $timestamp) , strftime(
"%d", $timestamp) + $inc, strftime(
"%Y", $timestamp));
51 $inc = ($daynumber - strftime(
"%w", $now)) % 7;
52 return mktime(0, 0, 0, strftime(
"%m", $now) , strftime(
"%d", $now) + $inc, strftime(
"%Y", $now));
57 $inc = (7 - strftime(
"%w", $now));
58 return mktime(0, 0, 0, strftime(
"%m", $now) , strftime(
"%d", $now) - $inc, strftime(
"%Y", $now));
77 return date(
"t", mktime(0, 0, 0, $m, 1, $y));
102 $nm = ($m == 12 ? 1 : $m + 1);
103 $ny = ($nm == 1 ? $y + 1 : $y);
108 $pm = ($m == 1 ? 12 : $m - 1);
109 $py = ($pm == 12 ? $y - 1 : $y);
114 return strftime(
"%W", $epoch);
120 return strftime(
"%W", $epoch);
nextday($d, $m, $y, &$nd, &$nm, &$ny)
nextmonth($m, $y, &$nm, &$ny)
GoNextWeekDay($now, $daynumber)
GetWeekFirstDay($now, $epoch)
prevday($d, $m, $y, &$pd, &$pm, &$py)
prevmonth($m, $y, &$pm, &$py)