Time.unix

Property. Retrieves a TimeSpan that corresponds to Unix time (time since 1/1/1970). Use the TimeSpan accessors to get the time in seconds, milliseconds, etc.

struct Time
unix
()

Return Value

Type: TimeSpan

A TimeSpan representing this Time as Unix time.

auto unixTime = Clock.now.unix.seconds;
auto javaTime = Clock.now.unix.millis;

Meta