Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #306 from evanj/doc-fix
Browse files Browse the repository at this point in the history
jwt.NumericDate: Correct doc comment to "ignoring leap seconds"
  • Loading branch information
mbyczkowski committed Jun 30, 2020
2 parents 150b71f + 71beb46 commit 0a67ce9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jwt/claims.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ type Claims struct {
}

// NumericDate represents date and time as the number of seconds since the
// epoch, including leap seconds. Non-integer values can be represented
// epoch, ignoring leap seconds. Non-integer values can be represented
// in the serialized format, but we round to the nearest second.
// See RFC7519 Section 2: https://tools.ietf.org/html/rfc7519#section-2
type NumericDate int64

// NewNumericDate constructs NumericDate from time.Time value.
Expand Down

0 comments on commit 0a67ce9

Please sign in to comment.