ChronoTrait

Trait ChronoTrait 

Source
pub trait ChronoTrait {
Show 19 methods // Required methods fn utc_add_time_by_weeks(&self) -> DateTime<Utc>; fn utc_add_time_by_days(&self) -> DateTime<Utc>; fn utc_add_time_by_hours(&self) -> DateTime<Utc>; fn utc_add_time_by_minutes(&self) -> DateTime<Utc>; fn utc_add_time_by_seconds(&self) -> DateTime<Utc>; fn local_add_time_by_weeks(&self) -> DateTime<Local>; fn local_add_time_by_days(&self) -> DateTime<Local>; fn local_add_time_by_hours(&self) -> DateTime<Local>; fn local_add_time_by_minutes(&self) -> DateTime<Local>; fn local_add_time_by_seconds(&self) -> DateTime<Local>; fn date_utc_is_expired(expiration_date: DateTime<Utc>) -> bool; fn date_local_is_expired(expiration_date: DateTime<Local>) -> bool; fn new_date_utc_now() -> DateTime<Utc>; fn new_date_local_now() -> DateTime<Local>; fn duration_sec(&self) -> Duration; fn duration_hours(&self) -> Duration; fn duration_minutes(&self) -> Duration; fn duration_days(&self) -> Duration; fn duration_weeks(&self) -> Duration;
}

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§