[Python-Dev] PEP: New timestamp formats

Victor Stinner victor.stinner at haypocalc.com
Thu Feb 2 16:25:25 CET 2012


> That said, I don't understand why we couldn't simply deprecate
> stat_float_times() right now. Having an option for integer timestamps
> is pointless, you can just call int() on the result if you want.

So which API do you propose for time.time() to get a Decimal object?

time.time(timestamp=decimal.Decimal)
time.time(decimal=True) or time.time(hires=True)

or something else?

Victor


More information about the Python-Dev mailing list