Problems with Date/Calc.php
| From: | Emil Rasmussen | Date: | Sun, 15 Jul 2001 11:37:13 +0000 |
| Subject: | Problems with Date/Calc.php | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-196@lists.php.net to get a copy of this message | ||
Hey
I am having problemes withe some off the functions in Date/Calc.php. The
problems only exists on Sundays, so it must have something to do with the
use of DATE_CALC_BEGIN_WEEKDAY constant? Here is an example:
____
<?php
$curWeekEnd = Date_Calc::endOfWeek();
echo $curWeekEnd .' curWeekEnd <br>';
?>
ouput:
20010722 curWeekEnd
____
The date I wanted was 20010715, the date of today. Am I doing anything
wrong?
I use the latest CVS Date/Calc.php file, PHP 4.05 and the 'date' return this
from the shell: Søn 15 Jul 2001 13:29:18 GMT.
Regards
Emil
--
Emil Rasmussen
http://www.noget.net