Re: Re: Issue with 'W' in the date() function?
| From: | William Bailey | Date: | Tue, 03 Feb 2004 16:16:25 +0000 |
| Subject: | Re: Re: Issue with 'W' in the date() function? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-176691@lists.php.net to get a copy of this message | ||
Ok. Its been a long day and my brain is starting to shut down so...
How would i work out which year the 'W' relates to?
I have a unix timestamp value and want to end up with the correct 'YW' value.
William Bailey wrote:
Hi Mike,Because week 1 is defined as the first week with four or more days in the new year. Therefore, working backwards, the 29th-31st are also in week 1 in 2004.Thanks, So now i will just have to check the year and then work out from that what the correct year should be. (i need to get a YW value).