Type Alias tai_time::GpsTime

source ·
pub type GpsTime = TaiTime<315_964_819>;
Expand description

A TaiTime alias using the Global Positioning System (GPS) epoch.

This timestamp is relative to 1980-01-06 00:00:00 UTC (1980-01-06 00:00:19 TAI).

§Examples

use tai_time::GpsTime;

// Set the timestamp one nanosecond after the GPS epoch.
let mut timestamp = GpsTime::new(0, 1).unwrap();

assert_eq!(timestamp, "1980-01-06 00:00:19.000000001".parse().unwrap());

Aliased Type§

struct GpsTime { /* private fields */ }