Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jwt.NumericDate: Correct doc comment to "ignoring leap seconds"
The JWT NumericDate type is a Unix/POSIX timestamp, which ignores leap seconds as far as I know. This said "including leap seconds" which was confusing. Use "ignoring leap seconds" which is direct from the RFC: RFC7519 Section 2 states: https://tools.ietf.org/html/rfc7519#section-2 A JSON numeric value representing the number of seconds from 1970-01-01T00:00:00Z UTC until the specified UTC date/time, ignoring leap seconds. This is equivalent to the IEEE Std 1003.1, 2013 Edition [POSIX.1] definition "Seconds Since the Epoch", in which each day is accounted for by exactly 86400 seconds, other than that non-integer values can be represented.
- Loading branch information