| ▲ | burntsushi 9 hours ago | ||||||||||||||||||||||
> but the datetime APIs refuse to expose leap-second info because they're too committed to "only UTC is in-scope for this project". This doesn't make sense on at least two different levels. First, pedantically, the definition of UTC as a time scale is that it includes leap seconds. So if you're committed to UTC, then you're supporting leap seconds. Second, and to more broadly address your point, you should say, "they're too committed to 'only the POSIX time scale is in-scope for this project.'" That more accurately captures the status quo and also intimates the problem: aside from specialty applications, basically everything is built on POSIX time, which specifically ignores the existence of leap seconds. | |||||||||||||||||||||||
| ▲ | LegionMammal978 9 hours ago | parent [-] | ||||||||||||||||||||||
Sure, but my gripe isn't even that we ought to change the "POSIX time by default" status quo (the ship has long sailed that everyone counts durations by 'calendar seconds'), it's that the underlying libraries don't even provide enough information for "specialty applications" to reliably correct for it, short of perpetually updating it themselves. | |||||||||||||||||||||||
| |||||||||||||||||||||||