Patch to add timestamp() method to datetime objects
23 Mar
2006
23 Mar
'06
8:12 p.m.
Hi, I've just submitted patch #1457227 which adds a convenience method to datetime objects to get the timestamp. It's equivalent to time.mktime(d.timetuple()), I just wanted to save myself some typing and be able to write d.timestamp() instead. I hope I have the dst code right. Would d.utctimestamp() be useful as well? Cheers, Chris
6607
Age (days ago)
6607
Last active (days ago)
0 comments
1 participants
participants (1)
-
Chris AtLee