Function timestamp [src]

Get a calendar timestamp, in seconds, relative to UTC 1970-01-01. Precision of timing depends on the hardware and operating system. The return value is signed because it is possible to have a date that is before the epoch. See posix.clock_gettime for a POSIX timestamp.

Prototype

pub fn timestamp() i64

Source

pub fn timestamp() i64 { return @divFloor(milliTimestamp(), ms_per_s); }