Struct datetime::LocalDateTime [] [src]

pub struct LocalDateTime { /* fields omitted */ }

A local date-time is an exact instant on the timeline, without a time zone.

Methods

impl LocalDateTime
[src]

Computes a complete date-time based on the values in the given Instant parameter.

Computes a complete date-time based on the number of seconds that have elapsed since midnight, 1st January, 1970, setting the number of milliseconds to 0.

Computes a complete date-time based on the number of seconds that have elapsed since midnight, 1st January, 1970,

Creates a new local date time from a local date and a local time.

Returns the date portion of this date-time stamp.

Returns the time portion of this date-time stamp.

Creates a new date-time stamp set to the current time.

Trait Implementations

impl PartialEq for LocalDateTime
[src]

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

This method tests for !=.

impl Eq for LocalDateTime
[src]

impl PartialOrd for LocalDateTime
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for LocalDateTime
[src]

This method returns an Ordering between self and other. Read more

impl Clone for LocalDateTime
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for LocalDateTime
[src]

impl DatePiece for LocalDateTime
[src]

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

The month of the year.

The day of the month, from 1 to 31.

The day of the year, from 1 to 366.

The day of the week.

The number of years into the century. This is the same as the last two digits of the year. Read more

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 LocalDateTime
[src]

The hour of the day.

The minute of the hour.

The second of the minute.

The millisecond of the second.

impl Debug for LocalDateTime
[src]

Formats the value using the given formatter.

impl Add<Duration> for LocalDateTime
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub<Duration> for LocalDateTime
[src]

The resulting type after applying the - operator

The method for the - operator

impl ISO for LocalDateTime
[src]

impl FromStr for LocalDateTime
[src]

The associated error which can be returned from parsing.

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