[Python-Dev] Issue 2736: datetimes and Unix timestamps

Barry Warsaw barry at python.org
Mon Jun 4 17:45:29 CEST 2012


On Jun 04, 2012, at 01:19 PM, Dirkjan Ochtman wrote:

>I recently opened issue14908. At work, I have to do a bunch of things
>with dates, times and timezones, and sometimes Unix timestamps are
>also involved (largely for easy compatibility with legacy APIs). I
>find the relative obscurity when converting datetimes to timestamps
>rather painful; IMO it should be possible to do everything I need
>straight from the datetime module objects, instead of having to
>involve the time or calendar modules.

I completely agree.  I've long considered this a wart in the stdlib, but never
got off my butt to do anything about it.  Thanks for filing this Dirkjan.

JFDI-ly y'rs,
-Barry


More information about the Python-Dev mailing list