[Python-Dev] Patch to add timestamp() method to datetime objects
Chris AtLee
chris at atlee.ca
Thu Mar 23 21:12:29 CET 2006
More information about the Python-Dev mailing list
Thu Mar 23 21:12:29 CET 2006
- Previous message: [Python-Dev] buildbot warnings in x86 XP-2 trunk
- Next message: [Python-Dev] test_quopri, test_wait3, and test_popen2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] buildbot warnings in x86 XP-2 trunk
- Next message: [Python-Dev] test_quopri, test_wait3, and test_popen2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list