Noda Time
FromMillisecondsSinceUnixEpoch Method (milliseconds)
NamespacesNodaTimeInstantFromMillisecondsSinceUnixEpoch(Int64)

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

Initializes a new instance of the Instant struct based on a number of milliseconds since the Unix epoch of (ISO) January 1st 1970, midnight, UTC.
Declaration Syntax
C#Visual BasicVisual C++
public static Instant FromMillisecondsSinceUnixEpoch(
	long milliseconds
)
Public Shared Function FromMillisecondsSinceUnixEpoch ( _
	milliseconds As Long _
) As Instant
public:
static Instant FromMillisecondsSinceUnixEpoch(
	long long milliseconds
)
Parameters
milliseconds (Int64)
Number of milliseconds since the Unix epoch. May be negative (for instants before the epoch).
Return Value
An Instant at exactly the given number of milliseconds since the Unix epoch.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThe constructed instant would be out of the range representable in Noda Time.

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