[Python-ideas] High Precision datetime

Alexander Belopolsky alexander.belopolsky at gmail.com
Thu May 17 13:14:06 EDT 2018


On Thu, May 17, 2018 at 12:56 PM Chris Barker via Python-ideas <
python-ideas at python.org> wrote:

> The other issue with leap-seconds is that python's datetime doesn't
support them :-)

That's not entirely true.  Since the implementation of PEP 495, it is
possible to represent the 23:59:60 as 23:59:59 with the "fold" bit set.  Of
course, the repeated 23:59:59 will be displayed and behave exactly the same
as the first 23:59:59, but a 3rd party library can be written to take the
"fold" bit into account in temporal operations.


More information about the Python-ideas mailing list