[issue2736] datetime needs and "epoch" method

Simon Cross report at bugs.python.org
Sat May 10 16:55:40 CEST 2008


Simon Cross <hodgestar at gmail.com> added the comment:

Attached a patch which adds a .totimetuple(...) method to
datetime.datetime and tests for it.

The intention is that the dt.totimetuple(...) method is equivalent to:
mktime(dt.timetuple()) + (dt.microsecond / 1000000.0)

----------
keywords: +patch
nosy: +hodgestar
Added file: http://bugs.python.org/file10251/add-datetime-totimestamp-method.diff

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2736>
__________________________________


More information about the Python-bugs-list mailing list