RE: Bug in Time module, or in my understanding?

2007-08-02 Thread Hamilton, William
From: Joshua J. Kugler I am getting results like these with the time module: import time int(time.mktime(time.strptime('2007-03-11 02:00:00', '%Y-%m-%d %H:%M %S'))) 1173610800 int(time.mktime(time.strptime('2007-03-11 03:00:00', '%Y-%m-%d %H:%M %S'))) 1173610800

Bug in Time module, or in my understanding?

2007-08-01 Thread Joshua J. Kugler
I am getting results like these with the time module: import time int(time.mktime(time.strptime('2007-03-11 02:00:00', '%Y-%m-%d %H:%M %S'))) 1173610800 int(time.mktime(time.strptime('2007-03-11 03:00:00', '%Y-%m-%d %H:%M %S'))) 1173610800 time.strftime('%Y-%m-%d %H:%M:%S',

Re: Bug in Time module, or in my understanding?

2007-08-01 Thread Paul Boddie
Joshua J. Kugler wrote: I am getting results like these with the time module: import time int(time.mktime(time.strptime('2007-03-11 02:00:00', '%Y-%m-%d %H:%M:%S'))) 1173610800 int(time.mktime(time.strptime('2007-03-11 03:00:00', '%Y-%m-%d %H:%M:%S'))) 1173610800

Re: Bug in Time module, or in my understanding?

2007-08-01 Thread Jay Loden
Joshua J. Kugler wrote: I am getting results like these with the time module: import time int(time.mktime(time.strptime('2007-03-11 02:00:00', '%Y-%m-%d %H:%M %S'))) 1173610800 int(time.mktime(time.strptime('2007-03-11 03:00:00', '%Y-%m-%d %H:%M %S'))) 1173610800 time.strftime('%Y-%m-%d

Re: Bug in Time module, or in my understanding?

2007-08-01 Thread Joshua J. Kugler
On Wednesday 01 August 2007 14:49, Jay Loden wrote: Hope some of this helps It did, thanks! j -- Joshua Kugler Lead System Admin -- Senior Programmer http://www.eeinternet.com PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE -- http://mail.python.org/mailman/listinfo/python-list

Re: Bug in Time module, or in my understanding?

2007-08-01 Thread Joshua J. Kugler
On Wednesday 01 August 2007 14:45, Paul Boddie wrote: Well, I think that if you inspect the result of strptime, you'll see that the last element of the time tuple - in fact, the tm_isdst member of a time structure - is set to -1: time.strptime('2007-03-11 02:00:00', '%Y-%m-%d %H:%M:%S')