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
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
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
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
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')