[issue14908] datetime.datetime should have a timestamp() method

Barry A. Warsaw report at bugs.python.org
Mon Jun 4 18:12:44 CEST 2012


Barry A. Warsaw <barry at python.org> added the comment:

On Jun 04, 2012, at 04:03 PM, Alexander Belopolsky wrote:

>That's a valuable experience.  How big of a deal was the lack of
>.ticks() and .gmticks()?  How did you work around it?

It was *much* less of an issue than all the magic date format parsing that
mxDT supports.  That's actually something that I think is a more serious
deficiency, since .strptime() is pretty limited (e.g. how would you parse ISO
8601 dates both with and without the 'T'?).  A Python 3 compatible time format
parser would make for a very nice separate library (PyPI) and/or addition to
the stdlib (eventually).

FWIW, here's the changeset.

http://bazaar.launchpad.net/~gwibber-committers/gwibber/trunk/revision/1354

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14908>
_______________________________________


More information about the Python-bugs-list mailing list