[issue2736] datetime needs and "epoch" method
STINNER Victor
report at bugs.python.org
Sat Nov 15 02:37:45 CET 2008
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
Le Saturday 15 November 2008 02:15:30 Alexander Belopolsky, vous avez écrit :
> I don't think changing fromtimestamp behavior is an option.
It's too late to break the API (Python3 is in RC stage ;-)), but we can create
new methods like:
datetime.fromepoch(seconds, microseconds=0) # (int/long, int)
datetime.toepoch() -> (seconds, microseconds) # (int/long, int)
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2736>
_______________________________________
More information about the Python-bugs-list
mailing list