Week of year?

Pickering, John (NORBORD) PICKERIJ@norbord.com
Mon, 6 Mar 2000 16:13:01 -0500


Yeah, ISO considers Monday the first day of the week. Quoting from the
gnu.org site, where date and time functions are described:
"The ISO 8601:1988 week number as a decimal number (range 01 through 53).
ISO weeks start with Monday and end with Sunday. Week 01 of a year is the
first week which has the majority of its days in that year; this is
equivalent to the week containing the year's first Thursday, and it is also
equivalent to the week containing January 4. Week 01 of a year can contain
days from the previous year. The week before week 01 of a year is the last
week (52 or 53) of the previous year even if it contains days from the new
year."

JWP

> -----Original Message-----
> From:	Pickering, John (NORBORD) 
> Sent:	Monday, March 06, 2000 4:05 PM
> To:	'john.webster@cdp.co.nz'; 'powerh-l@lists.swau.edu';
> 'jlkeepers@mmm.com'
> Subject:	RE: Week of year?
> 
> What, you don't like my code. 
> 
> If you are a supported customer you can root around in the old issues of
> SupportLink at cognos.com and find that week number calculations have been
> printed several times. They are all more or less alike, differing only in
> degree of y2k compliance, definition of the first day of the week and
> elegance of code.
> 
> Naturally, I think my solution is the best :-)
> 
> John Pickering
> Toronto
> 
> -----Original Message-----
> From:	John Webster [SMTP:john.webster@cdp.co.nz]
> Sent:	Monday, March 06, 2000 3:40 PM
> To:	powerh-l@lists.swau.edu; jlkeepers@mmm.com; pickerij@norbord.com
> Subject:	RE: Week of year?
> 
> There's an ISO standard that covers week numbering, and in a very old
> SupportLink I'm sure there's an article on how to calculate it. I'll try
> searching my archives, but someone else might know where it is. The User
> Group book might be another source - I think it has a section on dates
> that
> covers just about everything...
> John Webster
> --------
> <big snip>
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.