pub struct OffsetDateTime {
pub local: LocalDateTime,
pub offset: Offset,
}Fields§
§local: LocalDateTime§offset: OffsetTrait Implementations§
Source§impl Clone for OffsetDateTime
impl Clone for OffsetDateTime
Source§fn clone(&self) -> OffsetDateTime
fn clone(&self) -> OffsetDateTime
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DatePiece for OffsetDateTime
impl DatePiece for OffsetDateTime
Source§fn year(&self) -> i64
fn year(&self) -> i64
The year, in absolute terms.
This is in human-readable format, so the year 2014 actually has a
year value of 2014, rather than 14 or 114 or anything like that.
Source§fn year_of_century(&self) -> i64
fn year_of_century(&self) -> i64
The number of years into the century.
This is the same as the last two digits of the year.
Source§fn years_from_2000(&self) -> i64
fn years_from_2000(&self) -> i64
The year number, relative to the year 2000.
Internally, many routines use years relative the year 2000,
rather than the year 0 (well, 1 BCE).
Source§impl Debug for OffsetDateTime
impl Debug for OffsetDateTime
Source§impl FromStr for OffsetDateTime
impl FromStr for OffsetDateTime
Source§impl ISO for OffsetDateTime
impl ISO for OffsetDateTime
Source§impl PartialEq for OffsetDateTime
impl PartialEq for OffsetDateTime
Source§impl TimePiece for OffsetDateTime
impl TimePiece for OffsetDateTime
impl Copy for OffsetDateTime
impl StructuralPartialEq for OffsetDateTime
Auto Trait Implementations§
impl Freeze for OffsetDateTime
impl RefUnwindSafe for OffsetDateTime
impl Send for OffsetDateTime
impl Sync for OffsetDateTime
impl Unpin for OffsetDateTime
impl UnwindSafe for OffsetDateTime
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more