-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support parsing long millisecond timestamps in
InstantFormatter
This commit adds support of parsing a simple long from a String and turning it to an `Instant` by considering it represents a timestamp in milliseconds (see `Instant.ofEpochMilli`). Failing to parse a long from the String, the previous algorithm is used: first check for an RFC-1123 representation then an ISO_INSTANT representation. See gh-30312 Closes gh-30546
- Loading branch information
Showing
3 changed files
with
49 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters