Skip to main content

unix_time_now_ns

Function unix_time_now_ns 

Source
pub(crate) fn unix_time_now_ns() -> Result<u64, LJMError>
Expand description

Returns the current Unix timestamp in nanoseconds.

ยงErrors

Returns an error if the system clock is before the Unix epoch or the value does not fit in u64.