note 48759 added to function.date
| From: | abiliomagalhaes at practicalproject dot com | Date: | Thu, 06 Jan 2005 10:54:09 +0000 |
| Subject: | note 48759 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-82834@lists.php.net to get a copy of this message | ||
If i pretend to know the week number for the first day of the year using
date('W',mktime(0,0,0,1,1,2005)) PHP will return 53.
This is a problem because that week of 2004 is sametime the last week of 2004 but also the first
week of 2005.
I think this is an error because this way PHP don't know the Week nº 1 of 2005.
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48759
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48759&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48759&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48759&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48759&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48759&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48759&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48759&report=yes
Search -- http://master.php.net/manage/user-notes.php