[This is preliminary documentation and is subject to change.]
Converts a DateTimeOffset into a new Instant representing the same instant in time. Note that
the offset information is not preserved in the returned Instant.

C# | Visual Basic | Visual C++ |
public static Instant FromDateTimeOffset( DateTimeOffset dateTimeOffset )
Public Shared Function FromDateTimeOffset ( _ dateTimeOffset As DateTimeOffset _ ) As Instant
public: static Instant FromDateTimeOffset( DateTimeOffset dateTimeOffset )

- dateTimeOffset (DateTimeOffset)
- Date and time value with an offset.

An Instant value representing the same instant in time as the given DateTimeOffset.
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)