1 Jul 2010 01:40
Re: Re: Is this a bug with date() ?
Hans Åhlin <ahlin.hans <at> kronan-net.com>
2010-06-30 23:40:23 GMT
2010-06-30 23:40:23 GMT
A year can have 52 or 53 weeks and it can begin with week nr 1, 52 or 53 check this algorithm http://www.threesides.se/blogg/2010/04/15/date-calculation-algorithm/ ********************************************** Hans Åhlin Tel: +46761488019 icq: 275232967 http://www.kronan-net.com/ irc://irc.freenode.net:6667 - TheCoin ********************************************** 2010/6/30 Lester Caine <lester <at> lsces.co.uk>: > Michael Alaimo wrote: >> >> 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? >(Continue reading)
RSS Feed