Struct datetime::ZonedDateTime
[−]
[src]
pub struct ZonedDateTime<'a> { /* fields omitted */ }
Methods
impl<'a> ZonedDateTime<'a>
[src]
fn to_instant(&self) -> Instant
Trait Implementations
impl<'a> Debug for ZonedDateTime<'a>
[src]
impl<'a> DatePiece for ZonedDateTime<'a>
[src]
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. Read more
fn month(&self) -> Month
The month of the year.
fn day(&self) -> i8
The day of the month, from 1 to 31.
fn yearday(&self) -> i16
The day of the year, from 1 to 366.
fn weekday(&self) -> Weekday
The day of the week.
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. Read more
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). Read more