[Python-ideas] millisecond and microsecond times without floats

Gregory P. Smith greg at krypto.org
Tue Jun 23 02:39:14 CEST 2015


On Mon, Jun 22, 2015 at 5:35 PM Alexander Belopolsky <
alexander.belopolsky at gmail.com> wrote:

>
> 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)
>

That is a good vote for consistency with its API...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150623/431f4244/attachment.html>


More information about the Python-ideas mailing list