Re: Extended date and time

2007-11-12 Thread John Machin
On Nov 12, 8:46 pm, Jeremy Sanders wrote: > John Machin wrote: > > What does "dates in the past" mean?? Please be more specific about the > > earliest date that you want to be able to handle. Python's datetime > > starts at 0001-01-01. Somebody mentioned the time module, which is > > implementatio

Re: Extended date and time

2007-11-12 Thread Jeremy Sanders
John Machin wrote: > What does "dates in the past" mean?? Please be more specific about the > earliest date that you want to be able to handle. Python's datetime > starts at 0001-01-01. Somebody mentioned the time module, which is > implementation-dependent but typically starts at 1970-01-01 . >

Re: Extended date and time

2007-11-11 Thread John Machin
On Nov 11, 2:37 am, Jeremy Sanders wrote: > Hi - I need to add support to a program for dates and times. The built-in > Python library seems to be okay for many purposes, but what I would like > would be Unix epoch style times (seconds relative to some date), covering a > large period from the pas

Re: Extended date and time

2007-11-11 Thread D.Hering
On Nov 11, 4:46 pm, "D.Hering" <[EMAIL PROTECTED]> wrote: > On Nov 10, 10:37 am, Jeremy Sanders > I also have trouble with date/times with whats available. Off the top > of my head... converting a numpy array of epochs to some datetime > object and back. > > If I had the time I'd contribute additi

Re: Extended date and time

2007-11-11 Thread D.Hering
On Nov 10, 10:37 am, Jeremy Sanders wrote: > Hi - I need to add support to a program for dates and times. The built-in > Python library seems to be okay for many purposes, but what I would like > would be Unix epoch style times (seconds relative to some date), covering a > large period from the pa

Re: Extended date and time

2007-11-11 Thread Colin J. Williams
ting the other direction, change the format > string passed to strptime to match the pattern of your > existing strings. The standard docs for the time module has all the > details. > > - Adam What about November 5, 1605 ? Colin W. > > > > *From:* [EMAIL PROTECTE

RE: Extended date and time

2007-11-11 Thread Adam Pletcher
now2 1194790069.0 ... etc. If you're starting the other direction, change the format string passed to strptime to match the pattern of your existing strings. The standard docs for the time module has all the details. - Adam ____________ From: [EMAIL PROTECTED] o

Extended date and time

2007-11-10 Thread Jeremy Sanders
Hi - I need to add support to a program for dates and times. The built-in Python library seems to be okay for many purposes, but what I would like would be Unix epoch style times (seconds relative to some date), covering a large period from the past to the future. What would be nice would be a libr