DateTimeExtensionsFromUnixSeconds Method
Gets a
Utc DateTime from the seconds elapsed since the Unix Epoch time (1970-01-01T00:00Z).
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
public static DateTime FromUnixSeconds(
long seconds
)
Public Shared Function FromUnixSeconds (
seconds As Long
) As DateTime
public:
static DateTime FromUnixSeconds(
long long seconds
)
static member FromUnixSeconds :
seconds : int64 -> DateTime
- seconds Int64
- The number of seconds elapsed since the Unix Epoch time (1970-01-01T00:00Z), not counting leap seconds. Negative values as also allowed.
DateTimeA
Utc DateTime that represents the same moment as the specified
seconds parameter.