ToDateTime

Trait ToDateTime 

Source
pub trait ToDateTime {
    // Required methods
    fn start(&self) -> DateTime<Tz>;
    fn end(&self) -> DateTime<Tz>;
    fn midnight(&self) -> DateTime<Tz>;
}
Expand description

Provides methods to convert LocalBadiDate to a local Gregorian DateTime<Tz>

Required Methods§

Source

fn start(&self) -> DateTime<Tz>

The moment of sunset of this LocalBadiDate in local time

Source

fn end(&self) -> DateTime<Tz>

The moment of sunset of the end of this / start of next LocalBadiDate in local time

Source

fn midnight(&self) -> DateTime<Tz>

Midnight (in local time) of this BadiDate

Implementors§