Type Alias tai_time::Tai1958Time
source · pub type Tai1958Time = TaiTime<-378_691_200>;Expand description
A TaiTime alias using an epoch set at 1958-01-01 00:00:00 TAI.
Timestamps with this epoch are in common use in TAI-based clocks. While most
literature sources consider that this epoch corresponds to 1958-01-01
00:00:00 UTC without any leap seconds, UTC was not formally defined at that
date and there is no unanimous consensus on this point. Notably, the
chrono::tai_clock introduced in C++20 considers that this epoch
corresponds to 1957-12-31 23:59:50 UTC.
§Examples
use tai_time::Tai1958Time;
// Set the timestamp one nanosecond after the 1958 TAI epoch.
let mut timestamp = Tai1958Time::new(0, 1);
assert_eq!(timestamp, "1958-01-01 00:00:00.000000001".parse().unwrap());Aliased Type§
struct Tai1958Time { /* private fields */ }