[issue40017] Please support CLOCK_TAI in the time module.

Russell Owen report at bugs.python.org
Thu Mar 19 15:14:59 EDT 2020


New submission from Russell Owen <rowen at uw.edu>:

It is becoming common (at least in astronomy) to want to use TAI as a time standard because it is a uniform time with no leap seconds, and differs from UTC (standard computer clock time) by an integer number of seconds that occasionally changes.

Linux offers a clock for TAI time: CLOCK_TAI. It would be very helpful to have this constant in the time module, e.g. for calling time.clock_gettime

Caveat: linux CLOCK_TAI will return UTC time if the leap second table has not been set up. Both ntp and ptp can be configured to maintain this table. So this is a caveat worth mentioning in the docs. But I hope it is not sufficient reason to deny the request.

----------
components: Library (Lib)
messages: 364633
nosy: r3owen
priority: normal
severity: normal
status: open
title: Please support CLOCK_TAI in the time module.
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40017>
_______________________________________


More information about the Python-bugs-list mailing list