toInstant method

Instant toInstant()

Converts this value to the instant it represents on the time line.

This is always an unambiguous conversion. Any difficulties due to daylight saving transitions or other changes in time zone are handled when converting from a LocalDateTime to a ZonedDateTime; the ZonedDateTime remembers the actual offset from UTC to local time, so it always knows the exact instant represented.

Returns: The instant corresponding to this value.

Implementation

Instant toInstant() => _offsetDateTime.toInstant();