-
Notifications
You must be signed in to change notification settings - Fork 63
Description
I see that this has previously been discussed and rejected: #42 #26
However, I don't believe that the reasoning is correct:
For Instant and LocalDateTime, the challenge is neither has an offset as @andrewsf said. It would be better for the user to choose the offset rather than the library to assume an offset.
I fully agree regarding LocalDateTime, but java.time.Instant does have an implicit offset of UTC:
For the segment from 1972-11-03 (exact boundary discussed below) until further notice, the consensus international time scale is UTC (with leap seconds). In this segment, the Java Time-Scale is identical to UTC-SLS. This is identical to UTC on days that do not have a leap second. On days that do have a leap second, the leap second is spread equally over the last 1000 seconds of the day, maintaining the appearance of exactly 86400 seconds per day.
https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html