Skip to main content

current_timestamp

Function current_timestamp 

Source
pub fn current_timestamp() -> i64
Expand description

Returns the current Unix timestamp in seconds.

Used for timestamping buffers, chunks, and other entities.

ยงExamples

use rlm_rs::io::current_timestamp;

let ts = current_timestamp();
assert!(ts > 0);