Struct datetime::Offset
[−]
[src]
pub struct Offset { /* fields omitted */ }
Methods
impl Offset
[src]
fn utc() -> Offset
[src]
fn of_seconds(seconds: i32) -> Result<Offset, Error>
[src]
fn of_hours_and_minutes(hours: i8, minutes: i8) -> Result<Offset, Error>
[src]
fn transform_date(&self, local: LocalDateTime) -> OffsetDateTime
[src]
fn is_utc(&self) -> bool
[src]
fn is_negative(&self) -> bool
[src]
fn hours(&self) -> i8
[src]
fn minutes(&self) -> i8
[src]
fn seconds(&self) -> i8
[src]
Trait Implementations
impl ISO for Offset
[src]
impl PartialEq for Offset
[src]
fn eq(&self, __arg_0: &Offset) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Offset) -> bool
[src]
This method tests for !=
.
impl Copy for Offset
[src]
impl Clone for Offset
[src]
fn clone(&self) -> Offset
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more