[issue23574] datetime: support leap seconds

STINNER Victor report at bugs.python.org
Sun Mar 29 19:25:48 EDT 2020


STINNER Victor <vstinner at python.org> added the comment:

One option to explore is to add a "leap seconds" field to datetime.datetime which can be negative (just in case someone decides to add negative leap seconds in the future).

It can use in operations which involve time zones, it can be serialized/deserialized, but datetime.datetime.timestamp() would ignore this field ("drop" leap seconds on purpose).

----------
nosy: +p-ganssle
resolution: wont fix -> 
status: closed -> open

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


More information about the Python-bugs-list mailing list