-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Easy way to check a time is a leap second #49
Comments
This is intentional and (while not yet in the currently released version) documented. Can you clarify what is this issue about? I would like to close this issue if your concern is simply a missing documentation. The core rationale is that you can assume that there is no such thing as a leap second; the exception is when you actually get a leap second ( |
The undelrying issue I am experiencing is this: I am parsing ASN.1 UTCTime values, which have the format you see in my original example, except they don't allow leap seconds ( So, I suppose I have two questions/comments:
|
|
|
Renamed this issue. Adding something like |
@alex -- it's been a while. Is this still of interest to you? |
I'm no longer using Chrono for this application, so it doesn't impact me directly. I do think it'd be valuable to have an is leap second API though! |
Specifically: the string representation of the datetime shows it (correctly) as
:60
seconds, however the internal representation stores it as59
seconds and1000000000
nanoseconds. In general, smaller units are converted to larger ones as soon as an integral divisor is reached, so I'm not sure why it's notd.second()
->60
andd.nanosecond()
->0
.The text was updated successfully, but these errors were encountered: