Skip to main content

system_time_now

Function system_time_now 

Source
pub fn system_time_now() -> SystemTime
Expand description

Returns a SystemTime representing “now” even on wasm targets where SystemTime::now() normally panics. On wasm we synthesize the timestamp from Date.now() so existing code can keep using standard APIs.