Noda Time
FromDateTimeUtc Method (dateTime)
NamespacesNodaTimeInstantFromDateTimeUtc(DateTime)

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

Converts a DateTime into a new Instant representing the same instant in time.
Declaration Syntax
C#Visual BasicVisual C++
public static Instant FromDateTimeUtc(
	DateTime dateTime
)
Public Shared Function FromDateTimeUtc ( _
	dateTime As DateTime _
) As Instant
public:
static Instant FromDateTimeUtc(
	DateTime dateTime
)
Parameters
dateTime (DateTime)
Date and time value which must have a Kind of Utc
Return Value
An Instant value representing the same instant in time as the given universal DateTime.
Exceptions
ExceptionCondition
ArgumentExceptiondateTime is not of KindUtc.

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