Trait badi_date::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§