SysTime.fromUnixTime

SysTime fromUnixTime(long unixTime, immutable TimeZone tz = LocalTime()) @safe pure nothrow

Converts from unix time (i.e. seconds from midnight, January 1st, 1970 in UTC) to a SysTime.

The C standard does not specify the representation of time_t, so it is implementation defined. On POSIX systems, unix time is equivalent to time_t, but that's not necessarily true on other systems (e.g. it is not true for the Digital Mars C runtime). So, be careful when using unix time with C functions on non-POSIX systems.

Parameters

unixTimeSeconds from midnight, January 1st, 1970 in UTC.
tzThe time zone for the SysTime that's returned.