[issue2736] datetime needs and "epoch" method

Alexander Belopolsky report at bugs.python.org
Mon Nov 24 19:07:44 CET 2008


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

On Mon, Nov 24, 2008 at 12:34 PM, STINNER Victor <report at bugs.python.org> wrote:
..
>> I would still prefer totimestamp()->(int, int) returning (sec, usec)
>> tuple.  The important benefit is that such totimestamp() will not
>> loose information
>
> Right, I prefer your solution ;-)
>

Great!  What do you think about extending fromtimestamp(timestamp[,
tz]) and utcfromtimestamp(timestamp) to accept a tuple for the
timestamp?

Also, are you motivated enough to bring this up on python-dev to get a
community and BDFL blessings?  I think this has a chance to be
approved.

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


More information about the Python-bugs-list mailing list