[issue40017] Please support CLOCK_TAI in the time module.

2020-03-23 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 687fe979705dc588a46a35da884cc0198c67 by Russell Owen in 
branch 'master':
closes bpo-40017: Add CLOCK_TAI constant to the time module. (GH-19096)
https://github.com/python/cpython/commit/687fe979705dc588a46a35da884cc0198c67


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40017] Please support CLOCK_TAI in the time module.

2020-03-20 Thread Russell Owen


Change by Russell Owen :


--
keywords: +patch
pull_requests: +18455
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/19096

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40017] Please support CLOCK_TAI in the time module.

2020-03-19 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40017] Please support CLOCK_TAI in the time module.

2020-03-19 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

I think we could certainly take a patch to expose that constant if libc/kernel 
headers expose it.

--
nosy: +benjamin.peterson

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40017] Please support CLOCK_TAI in the time module.

2020-03-19 Thread Russell Owen


New submission from Russell Owen :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com