Noda Time
FromSecondsSinceUnixEpoch Method (seconds)
NamespacesNodaTimeInstantFromSecondsSinceUnixEpoch(Int64)

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

Initializes a new instance of the Instant struct based on a number of seconds since the Unix epoch of (ISO) January 1st 1970, midnight, UTC.
Declaration Syntax
C#Visual BasicVisual C++
public static Instant FromSecondsSinceUnixEpoch(
	long seconds
)
Public Shared Function FromSecondsSinceUnixEpoch ( _
	seconds As Long _
) As Instant
public:
static Instant FromSecondsSinceUnixEpoch(
	long long seconds
)
Parameters
seconds (Int64)
Number of seconds since the Unix epoch. May be negative (for instants before the epoch).
Return Value
An Instant at exactly the given number of seconds 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)