pub struct ZonedDateTime<'a> { /* private fields */ }Implementations§
Source§impl<'a> ZonedDateTime<'a>
impl<'a> ZonedDateTime<'a>
pub fn to_instant(&self) -> Instant
Trait Implementations§
Source§impl<'a> DatePiece for ZonedDateTime<'a>
impl<'a> DatePiece for ZonedDateTime<'a>
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<'a> Debug for ZonedDateTime<'a>
impl<'a> Debug for ZonedDateTime<'a>
Auto Trait Implementations§
impl<'a> Freeze for ZonedDateTime<'a>
impl<'a> RefUnwindSafe for ZonedDateTime<'a>
impl<'a> Send for ZonedDateTime<'a>
impl<'a> Sync for ZonedDateTime<'a>
impl<'a> Unpin for ZonedDateTime<'a>
impl<'a> UnwindSafe for ZonedDateTime<'a>
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