Trait gregor::TimeZone
[−]
[src]
pub trait TimeZone { fn from_timestamp(&self, t: UnixTimestamp) -> NaiveDateTime; fn to_timestamp(
&self,
d: &NaiveDateTime
) -> Result<UnixTimestamp, LocalTimeConversionError>; }
Required Methods
fn from_timestamp(&self, t: UnixTimestamp) -> NaiveDateTime
fn to_timestamp(
&self,
d: &NaiveDateTime
) -> Result<UnixTimestamp, LocalTimeConversionError>
&self,
d: &NaiveDateTime
) -> Result<UnixTimestamp, LocalTimeConversionError>
Implementors
impl TimeZone for Utc
impl TimeZone for FixedOffsetFromUtc
impl<Tz: DaylightSaving> TimeZone for Tz