Post

LocalDateTime VS Instant

  1. Instant represents a moment, a specific point in the timeline.
  2. LocalDateTime represents a date and a time-of-day. But lacking a time zone or offset-from-UTC, this class cannot represent a moment. It represents potential moments along a range of about 26 to 27 hours, the range of all time zones around the globe. A LocalDateTime value is inherently ambiguous.
This post is licensed under CC BY 4.0 by the author.