4 ms·
It depends whether you interpret "23:59:59" as being an instant (1 second before the end of most days) or a duration (the last second of most days). 23:59:59.5
by progval 4y ago
It depends whether you interpret "23:59:59" as being an instant (1 second before the end of most days) or a duration (the last second of most days).
23:59:59.500 is after 23:59:59 when interpreted as an instant, but it is part of 23:59:59 as a duration.
- throwaway294566 4y agoThats why the day doesn't end at the instant of 23:59:59, nor does it end at 23:59:60 (if there is a leap second). It actually ends at 24:00:00. Which is the same instant in time as 00:00:00 of the following day. Every conforming implementation of ISO 8601 should know about that. And all software should conform to ISO 8601.