Time.fromUnixTime

Constructs a Time instance from the Unix time (time since 1/1/1970).

struct Time
static
fromUnixTime
(
time_t unix_time
)

Parameters

unix_time time_t

number of seconds since 1/1/1970

Return Value

Type: Time

Time instance corresponding the given unix time.

Meta