Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ethlo authored Aug 12, 2019
1 parent e6b3e18 commit 4bfca0b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,5 @@ Such offset is described in RFC3339 section 4.3., named "Unknown Local Offset Co
is the preferred reference point for the specified time.

### Leap second parsing
Since Java's `java.time` classes do not support storing leap seconds, it is not obvious how to support this.

ITU will parse the date-time correctly, however storing such values is not possible (in a `java.time.OffsetDateTime`), the `60` is therefore abandoned and the date-time will use `59` instead of `60`.
Since Java's `java.time` classes do not support storing leap seconds, ITU will throw a `LeapSecondException` if one is encountered to signal that this is a leap second. The exception can then be queried for the second-value. Storing such values is not possible in a `java.time.OffsetDateTime`, the `60` is therefore abandoned and the date-time will use `59` instead of `60`.

0 comments on commit 4bfca0b

Please sign in to comment.