[Zope] Retrieving the week number with DateTime
Rob W. W. Hooft
rob@hooft.net
Fri, 4 Aug 2000 09:10:03 +0200 (CEST)
>>>>> "DC" == David Coe <davidc@debian.org> writes:
DC> I suspect there is no 'standard' definition of week number.
You're wrong. According to the calendar FAW (thanks, Google:-):
------------------------------------------------
5.7 What is the week number?
International standard IS-8601 (mentioned in section 5.6) assigns a number to each week of the year. A week that lies partly in one year
and partly in another is assigned a number in the year in which most of its days lie. This means that
Week 1 of any year is the week that contains 4 January,
or equivalently
Week 1 of any year is the week that contains the first Thursday in January.
Most years have 52 weeks, but years that start on a Thursday and leap years that start on a Wednesday have 53 weeks.
------------------------------------------------
Regards,
Rob Hooft
--
===== rob@hooft.net http://www.hooft.net/people/rob/ =====
===== R&D, Nonius BV, Delft http://www.nonius.nl/ =====
===== PGPid 0xFA19277D ========================== Use Linux! =========