New submission from Russell Owen <ro...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue40017>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to