Struct datetime::LocalTime [] [src]

pub struct LocalTime { /* fields omitted */ }

A local time is a time on the timeline that recurs once a day, without a time zone.

Methods

impl LocalTime
[src]

[src]

Computes the number of hours, minutes, and seconds, based on the number of seconds that have elapsed since midnight.

[src]

Computes the number of hours, minutes, and seconds, based on the number of seconds that have elapsed since midnight.

[src]

Returns the time at midnight, with all fields initialised to 0.

[src]

Creates a new timestamp instance with the given hour and minute fields. The second and millisecond fields are set to 0.

The values are checked for validity before instantiation, and passing in values out of range will return an Err.

[src]

Creates a new timestamp instance with the given hour, minute, and second fields. The millisecond field is set to 0.

The values are checked for validity before instantiation, and passing in values out of range will return an Err.

[src]

Creates a new timestamp instance with the given hour, minute, second, and millisecond fields.

The values are checked for validity before instantiation, and passing in values out of range will return an Err.

[src]

Calculate the number of seconds since midnight this time is at, ignoring milliseconds.

Trait Implementations

impl PartialEq for LocalTime
[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 LocalTime
[src]

impl PartialOrd for LocalTime
[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 LocalTime
[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 LocalTime
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for LocalTime
[src]

impl TimePiece for LocalTime
[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 LocalTime
[src]

[src]

Formats the value using the given formatter.

impl ISO for LocalTime
[src]

[src]

[src]

impl FromStr for LocalTime
[src]

The associated error which can be returned from parsing.

[src]

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