Re: [Zope] Retrieving the week number with DateTime

2000-08-04 Thread Rob W. W. Hooft
> "DC" == David Coe <[EMAIL PROTECTED]> 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 (me

RE: [Zope] Retrieving the week number with DateTime

2000-08-03 Thread Gijs Reulen
ijs Reulen > -Oorspronkelijk bericht- > Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Namens Tim Cook > Verzonden: donderdag 3 augustus 2000 6:34 > Aan: David Coe; Zope List > Onderwerp: Re: [Zope] Retrieving the week number with DateTime > > > David Coe wrote: >

Re: [Zope] Retrieving the week number with DateTime

2000-08-02 Thread Tim Cook
David Coe wrote: > > I suspect there is no 'standard' definition of week number. > I asked this on a list with a bunch of accounting types and got the same reply. It is 'generally' associated with payroll or tax periods. Once you have a 'definition' for Jan 1 of the current year and the day o

Re: [Zope] Retrieving the week number with DateTime

2000-08-02 Thread David Coe
I suspect there is no 'standard' definition of week number. E.g. if the year begins on a Wednesday, is the following Monday part of week 1 or week 2? Once you decide, you can design a calculation starting with "some_date_object.dayOfYear()" which will give you the day number in the range 1 to

[Zope] Retrieving the week number with DateTime

2000-08-01 Thread Arjan Scherpenisse
Hello, i want to retrieve the number of the week from a DateTime object. Is there any way to do this? I've looked through DateTime.py but i couldnt find anything usefull, is there some algorithm to get this? thanks in advance, -- Arjan Scherpenisse [EMAIL PROTECTED] may the source be with you