Noda Time
FromTicksSinceUnixEpoch Method (ticks)
NamespacesNodaTimeInstantFromTicksSinceUnixEpoch(Int64)

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

Initializes a new instance of the Instant struct based on a number of ticks since the Unix epoch of (ISO) January 1st 1970, midnight, UTC.
Declaration Syntax
C#Visual BasicVisual C++
public static Instant FromTicksSinceUnixEpoch(
	long ticks
)
Public Shared Function FromTicksSinceUnixEpoch ( _
	ticks As Long _
) As Instant
public:
static Instant FromTicksSinceUnixEpoch(
	long long ticks
)
Parameters
ticks (Int64)
Number of ticks since the Unix epoch. May be negative (for instants before the epoch).
Return Value
An Instant at exactly the given number of ticks since the Unix epoch.
Remarks
This is equivalent to calling the constructor directly, but indicates intent more explicitly.

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