Noda Time
ToInstant Method
NamespacesNodaTimeZonedDateTimeToInstant()()()()

[This is preliminary documentation and is subject to change.]

Converts this value to the instant it represents on the time line.
Declaration Syntax
C#Visual BasicVisual C++
public Instant ToInstant()
Public Function ToInstant As Instant
public:
Instant ToInstant()
Return Value
The instant corresponding to this value.
Remarks
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.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)