Noda Time
FromDateTimeOffset Method (dateTimeOffset)
NamespacesNodaTimeInstantFromDateTimeOffset(DateTimeOffset)

[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.
Declaration Syntax
C#Visual BasicVisual C++
public static Instant FromDateTimeOffset(
	DateTimeOffset dateTimeOffset
)
Public Shared Function FromDateTimeOffset ( _
	dateTimeOffset As DateTimeOffset _
) As Instant
public:
static Instant FromDateTimeOffset(
	DateTimeOffset dateTimeOffset
)
Parameters
dateTimeOffset (DateTimeOffset)
Date and time value with an offset.
Return Value
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)