[−][src]Struct gregor::FixedOffsetFromUtc
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]
pub fn from_hours_and_minutes(hours: i32, minutes: i32) -> Self
[src]
Trait Implementations
impl TimeZone for FixedOffsetFromUtc
[src]
fn from_timestamp(&self, u: UnixTimestamp) -> NaiveDateTime
[src]
fn to_timestamp(
&self,
d: &NaiveDateTime
) -> Result<UnixTimestamp, LocalTimeConversionError>
[src]
&self,
d: &NaiveDateTime
) -> Result<UnixTimestamp, LocalTimeConversionError>
impl UnambiguousTimeZone for FixedOffsetFromUtc
[src]
fn to_unambiguous_timestamp(&self, d: &NaiveDateTime) -> UnixTimestamp
[src]
impl Clone for FixedOffsetFromUtc
[src]
fn clone(&self) -> FixedOffsetFromUtc
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for FixedOffsetFromUtc
[src]
impl Debug for FixedOffsetFromUtc
[src]
impl PartialEq<FixedOffsetFromUtc> for FixedOffsetFromUtc
[src]
fn eq(&self, other: &FixedOffsetFromUtc) -> bool
[src]
fn ne(&self, other: &FixedOffsetFromUtc) -> bool
[src]
impl Eq for FixedOffsetFromUtc
[src]
impl Default for FixedOffsetFromUtc
[src]
fn default() -> FixedOffsetFromUtc
[src]
Auto Trait Implementations
impl Send for FixedOffsetFromUtc
impl Sync for FixedOffsetFromUtc
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,