[docs] [issue12758] time.time() returns local time instead of UTC

Alexander Belopolsky report at bugs.python.org
Wed Aug 17 02:42:03 CEST 2011


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

> Return the local time as a floating point number
> expressed in seconds since the epoch.

No.  Seconds since the epoch is neither local nor UTC.  It is just an elapsed number of seconds since an agreed upon time called the "epoch".  

I would say: "Return the current time as a floating point number representing the number of seconds elapsed since the epoch."  Suggestions for a shorter formulation that would not change the meaning are welcome.  Maybe "Return the number of seconds elapsed since the epoch as a floating point number."

----------

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


More information about the docs mailing list