Trait Tai64Format

Source
pub trait Tai64Format {
    // Required methods
    fn to_rfc2822_local(&self) -> String;
    fn to_rfc2822_utc(&self) -> String;
    fn to_datetime_utc(&self) -> DateTime<Utc>;
    fn to_exceldays(&self, offset_hours: f64) -> f64;
}

Required Methods§

Source

fn to_rfc2822_local(&self) -> String

Source

fn to_rfc2822_utc(&self) -> String

Source

fn to_datetime_utc(&self) -> DateTime<Utc>

Source

fn to_exceldays(&self, offset_hours: f64) -> f64

Implementations on Foreign Types§

Source§

impl Tai64Format for Tai64N

Source§

fn to_exceldays(&self, offset_hours: f64) -> f64

Convert to Excel’s days-since-~1900 values. You need to pass the correct zone difference, and adapt it for DST. Panics on potential conversion errors. offset_hours: 1.0 represents +01:00.

Source§

fn to_rfc2822_local(&self) -> String

Source§

fn to_rfc2822_utc(&self) -> String

Source§

fn to_datetime_utc(&self) -> DateTime<Utc>

Implementors§