Provide different interpretations of Instant
s
#16
Labels
enhancement
An improvement to existing functionality
minor
Has only a small impact for the majority of users
question
Looking for an answer
Leap seconds cause all kinds of problems.
UNIX time increases by 86400 seconds every day, even on days when there is a leap second. On these days, the same numerical time can ambiguously represent distinct times (one second apart). This can affect calculations involving durations which span leap seconds.
Conversely, TAI does account for leap seconds.
I think that internally representing an
Instant
as TAI or UNIX time are both viable, and new instances ofInstant
s in either representation could be constructed from UNIX timestamps or TAI timestamps, potentially raising ambiguity issues.The text was updated successfully, but these errors were encountered: