Skip to main content

timestamp_from_unix_micros

Function timestamp_from_unix_micros 

Source
pub fn timestamp_from_unix_micros(unix_micros: u64) -> u64
Expand description

Converts a wall-clock time to a MAVLink signing timestamp.

§Arguments

  • unix_micros - microseconds since the Unix epoch, as a field clock (RTC or GPS) would report.

§Returns

The timestamp in 10-microsecond ticks since the MAVLink epoch, or 0 if the time is before that epoch.