[Python-ideas] millisecond and microsecond times without floats
Alexander Belopolsky
alexander.belopolsky at gmail.com
Tue Jun 23 02:35:45 CEST 2015
On Mon, Jun 22, 2015 at 8:03 PM, Gregory P. Smith <greg at krypto.org> wrote:
> # We could use the long form names milliseconds, microseconds and
> nanoseconds but i worry with those that people would inevitably confuse ms
> with microseconds as times and APIs usually given the standard
> abbreviations rather than spelled out.
Note that datetime.timedelta uses long names:
>>> timedelta(milliseconds=5, microseconds=3)
datetime.timedelta(0, 0, 5003)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150622/1dea6184/attachment.html>
More information about the Python-ideas
mailing list