Struct datetime::Duration [] [src]

pub struct Duration { /* fields omitted */ }

A duration is a length of time on the timeline, irrespective of time zone or calendar format, with millisecond precision.

Methods

impl Duration
[src]

Create a new zero-length duration.

Create a new duration that’s the given number of seconds long.

Create a new duration that’s the given number of seconds and milliseconds long.

Return the seconds and milliseconds portions of the duration as a 2-element tuple.

Trait Implementations

impl Clone for Duration
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

impl Debug for Duration
[src]

Formats the value using the given formatter.

impl Copy for Duration
[src]

impl Add<Duration> for Duration
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub<Duration> for Duration
[src]

The resulting type after applying the - operator

The method for the - operator

impl Mul<i64> for Duration
[src]

The resulting type after applying the * operator

The method for the * operator