Re: Is this a bug with date() ?

From: Date: Wed, 30 Jun 2010 15:30:59 +0000
Subject: Re: Is this a bug with date() ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-306573@lists.php.net to get a copy of this message
I have found a bug report. This is the correct functionality. Mike > 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 >

« previous php.general (#306573) next »