Function utc2k::unixtime

source ·
pub fn unixtime() -> u32
Expand description

§Now (Current Unixtime).

This returns the current unix timestamp as a u32.

Rather than panic on out-of-range values — in the event the system clock is broken or an archaeologist is running this in the distant future — the timetsamp will be saturated to Utc2k::MIN_UNIXTIME or Utc2k::MAX_UNIXTIME.