Is this a bug with date() ?
| From: | Michael Alaimo | Date: | Wed, 30 Jun 2010 15:05:20 +0000 |
| Subject: | Is this a bug with date() ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-306572@lists.php.net to get a copy of this message | ||
I understand that technically there are more than 52 weeks in a year.
Well at least google says 1 year = 52.177457 weeks.
So I run the command:
php > echo date('W' , mktime(0, 0, 0, 1, 1, date('Y')));
53
As you can see the result is 53.
Any thoughts on this?
Mike