datetime to timestamp

Simen Haugen simen.haugen at norstat.no
Fri Aug 11 09:10:18 EDT 2006


Hi.

How can I convert a python datetime to a timestamp? It's easy to convert
a timestamp to datetime (datetime.datetime.fromtimestamp(), but the
other way around...?)

-Simen




More information about the Python-list mailing list