News for hackers. Stuff that matters.
Re:Maya – Python Datetimes for Humans by bpicolo on Sunday December 18, 2016 @08:39AM (#13205776)
Seems like your OS / clock source should always be the guy handling leap seconds. Why would a higher-level library do it? The cases are pretty rare that you'd want to think differently about leap seconds in higher level code.
Re:Maya – Python Datetimes for Humans by meltingwax on Sunday December 18, 2016 @02:35PM (#13207173)
Here's an example:

I have packets read from an instrument which are timestamped in seconds since 1980-01-06 (GPS Epoch). To compute each packet's proper datetime representation in TAI, I need add those seconds to 1980-01-06, and subtract the amount of leap seconds that occurred. The subtracting of leap seconds could be done automatically by a library. When a leap second is added, it will occur on the 61st second of the minute (second = :60). These times aren't supported by the datetime class.