Skip to content
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

Support leap seconds #3

Open
SevereOverfl0w opened this issue Apr 17, 2021 · 0 comments
Open

Support leap seconds #3

SevereOverfl0w opened this issue Apr 17, 2021 · 0 comments

Comments

@SevereOverfl0w
Copy link

(reap.decoders/http-date "Thu, 31 Dec 1998 23:59:60 GMT") should work, as specified in RFC7231

     time-of-day  = hour ":" minute ":" second
                  ; 00:00:00 - 23:59:60 (leap second)

Java time does not support leap seconds. The DateTimeFormatter for "appendInstant" instead will round down to :59 and set a flag to indicate the leap second was true and allow you to act on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant