Re: [PHP] PHP date: ISO year = loss of hair

2007-12-14 Thread tedd
At 10:02 AM +0200 12/14/07, Arno Kuhl wrote: I'm battling with getting the last week number using date(W, $unixdate). If the date is 30 December 2007 ($unixdate=1198965600) Not accordingly to my calculations -- try it: http://webbytedd.com/c/unix-time/ Cheers, tedd -- ---

RE: [PHP] PHP date: ISO year = loss of hair

2007-12-14 Thread Arno Kuhl
-Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: 14 December 2007 04:50 To: [EMAIL PROTECTED]; php-general@lists.php.net Cc: Arno Kuhl Subject: Re: [PHP] PHP date: ISO year = loss of hair At 10:02 AM +0200 12/14/07, Arno Kuhl wrote: I'm battling with getting the last week

Re: [PHP] PHP date: ISO year = loss of hair

2007-12-14 Thread Andrew Ballard
On Dec 14, 2007 3:02 AM, Arno Kuhl [EMAIL PROTECTED] wrote: I'm battling with getting the last week number using date(W, $unixdate). If the date is 30 December 2007 ($unixdate=1198965600) then date(W, $unixdate) returns 01. I know that according to the ISO spec, the last week of the ISO year

RE: [PHP] PHP date: ISO year = loss of hair

2007-12-14 Thread Arno Kuhl
-Original Message- From: Andrew Ballard [mailto:[EMAIL PROTECTED] Sent: 14 December 2007 04:38 To: PHP General list Subject: Re: [PHP] PHP date: ISO year = loss of hair If the last week of the year is the one that has Dec. 28 in it, and the last week number is 52, then Dec. 30 SHOULD

Re: [PHP] PHP date: ISO year = loss of hair

2007-12-14 Thread Richard Lynch
On Fri, December 14, 2007 2:02 am, Arno Kuhl wrote: I'm battling with getting the last week number using date(W, $unixdate). If the date is 30 December 2007 ($unixdate=1198965600) then date(W, $unixdate) returns 01. I know that according to the ISO spec, the last week of the ISO year has 28

[PHP] PHP date: ISO year = loss of hair

2007-12-13 Thread Arno Kuhl
I'm battling with getting the last week number using date(W, $unixdate). If the date is 30 December 2007 ($unixdate=1198965600) then date(W, $unixdate) returns 01. I know that according to the ISO spec, the last week of the ISO year has 28 December in it, so in this particular case the last week