Struct datetime::OffsetDateTime [] [src]

pub struct OffsetDateTime {
    pub local: LocalDateTime,
    pub offset: Offset,
}

Fields

local: LocalDateTime offset: Offset

Trait Implementations

impl ISO for OffsetDateTime
[src]

fn fmt(&self, f: &mut Formatter) -> Result

fn iso(&self) -> ISOString<Self>

impl Clone for OffsetDateTime
[src]

fn clone(&self) -> OffsetDateTime

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for OffsetDateTime
[src]

impl PartialEq for OffsetDateTime
[src]

fn eq(&self, __arg_0: &OffsetDateTime) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &OffsetDateTime) -> bool

This method tests for !=.

impl DatePiece for OffsetDateTime
[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

impl TimePiece for OffsetDateTime
[src]

fn hour(&self) -> i8

The hour of the day.

fn minute(&self) -> i8

The minute of the hour.

fn second(&self) -> i8

The second of the minute.

fn millisecond(&self) -> i16

The millisecond of the second.

impl Debug for OffsetDateTime
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl FromStr for OffsetDateTime
[src]

type Err = Error<OffsetError>

The associated error which can be returned from parsing.

fn from_str(input: &str) -> Result<OffsetDateTime, Self::Err>

Parses a string s to return a value of this type. Read more