Struct gregor::FixedOffsetFromUtc
[−]
[src]
pub struct FixedOffsetFromUtc { /* fields omitted */ }
The offset is typically positive east of Greenwich (longitude 0°), negative west.
For example, Japan Standard Time is UTC+09:00:
use gregor::FixedOffsetFromUtc; let jst = FixedOffsetFromUtc::from_hours_and_minutes(9, 0);
Methods
impl FixedOffsetFromUtc
[src]
fn from_hours_and_minutes(hours: i32, minutes: i32) -> Self
Trait Implementations
impl Debug for FixedOffsetFromUtc
[src]
impl Eq for FixedOffsetFromUtc
[src]
impl PartialEq for FixedOffsetFromUtc
[src]
fn eq(&self, __arg_0: &FixedOffsetFromUtc) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FixedOffsetFromUtc) -> bool
This method tests for !=
.
impl Copy for FixedOffsetFromUtc
[src]
impl Clone for FixedOffsetFromUtc
[src]
fn clone(&self) -> FixedOffsetFromUtc
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for FixedOffsetFromUtc
[src]
fn default() -> FixedOffsetFromUtc
Returns the "default value" for a type. Read more
impl UnambiguousTimeZone for FixedOffsetFromUtc
[src]
fn to_unambiguous_timestamp(&self, d: &NaiveDateTime) -> UnixTimestamp
impl TimeZone for FixedOffsetFromUtc
[src]
fn from_timestamp(&self, u: UnixTimestamp) -> NaiveDateTime
fn to_timestamp(
&self,
d: &NaiveDateTime
) -> Result<UnixTimestamp, LocalTimeConversionError>
&self,
d: &NaiveDateTime
) -> Result<UnixTimestamp, LocalTimeConversionError>