[Python-Dev] Patch to add timestamp() method to datetime objects

Chris AtLee chris at atlee.ca
Thu Mar 23 21:12:29 CET 2006


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


More information about the Python-Dev mailing list