Instant

Instant is a single instantaneous point on the time-line. If instant specification contains Z, then it is parsed using Instant.parse() method. Otherwise the specification is used to construct java.util.Date which is then converted to instant.

Examples:

  • 2021-12-03T10:15:30.00Z - loaded using Instant.parse()
  • 10/1/2021 - loaded using new Date() and then converted to instant.

Uses