Noda Time
Instant Constructor (ticks)
NamespacesNodaTimeInstantInstant(Int64)

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

Initializes a new instance of the Instant struct.
Declaration Syntax
C#Visual BasicVisual C++
public Instant(
	long ticks
)
Public Sub New ( _
	ticks As Long _
)
public:
Instant(
	long long ticks
)
Parameters
ticks (Int64)
The number of ticks since the Unix epoch. Negative values represent instants before the Unix epoch.
Remarks
Note that while the Noda Time Instant type and BCL DateTime and DateTimeOffset types are all defined in terms of a number of ticks, they use different origins: the Noda Time types count ticks from the Unix epoch (the start of 1970 AD), while the BCL types count from the start of 1 AD. This constructor requires the former; to convert from a number-of-ticks since the BCL epoch, construct a DateTime first, then use FromDateTimeUtc(DateTime).

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