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]

[src]

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

[src]

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.

[src]

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

[src]

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

[src]

Returns the date portion of this date-time stamp.

[src]

Returns the time portion of this date-time stamp.

[src]

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

[src]

[src]

Trait Implementations

impl PartialEq for LocalDateTime
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for LocalDateTime
[src]

impl PartialOrd for LocalDateTime
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl Clone for LocalDateTime
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for LocalDateTime
[src]

impl DatePiece for LocalDateTime
[src]

[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

[src]

The month of the year.

[src]

The day of the month, from 1 to 31.

[src]

The day of the year, from 1 to 366.

[src]

The day of the week.

[src]

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

[src]

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]

[src]

The hour of the day.

[src]

The minute of the hour.

[src]

The second of the minute.

[src]

The millisecond of the second.

impl Debug for LocalDateTime
[src]

[src]

Formats the value using the given formatter.

impl Add<Duration> for LocalDateTime
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub<Duration> for LocalDateTime
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl ISO for LocalDateTime
[src]

[src]

[src]

impl FromStr for LocalDateTime
[src]

The associated error which can be returned from parsing.

[src]

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