Type Alias tai_time::BdtTime

source ·
pub type BdtTime = TaiTime<1_136_073_633>;
Expand description

A TaiTime alias using the BeiDou Time (BDT) epoch.

This timestamp is relative to 2006-01-01 00:00:00 UTC (2006-01-01 00:00:33 TAI).

§Examples

use tai_time::BdtTime;

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

assert_eq!(timestamp, "2006-01-01 00:00:33.000000001".parse().unwrap());

Aliased Type§

struct BdtTime { /* private fields */ }