Skip to content

Calendar: Why do hours, minutes and seconds go to 24/60/61 and not 23/59/60? #3086

Answered by sffc
Ekleog asked this question in Q&A
Discussion options

You must be logged in to vote

The extra second is to handle leap seconds, and then all the fields support one greater than the maximum cyclic value due, I believe, to accommodate certain situations that express the difference between "last unit of previous time period" versus "first unit of next time period".

Replies: 2 comments 1 reply

This comment has been hidden.

Comment options

You must be logged in to vote
1 reply
@Ekleog
Comment options

Answer selected by Ekleog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #3085 on February 04, 2023 21:54.