Struct tai64::TAI64N [] [src]

pub struct TAI64N(pub TAI64, pub u32);

A TAI64N timestamp.

Invariant: The nanosecond part <= 999999999.

Methods

impl TAI64N
[src]

[src]

Convert TAI64N to external representation.

[src]

Parse TAI64N from external representation.

impl TAI64N
[src]

[src]

Get TAI64N timestamp according to system clock.

impl TAI64N
[src]

[src]

Calculate how much time passes since the other timestamp.

Returns Ok(Duration) if other is ealier than self, Err(Duration) otherwise.

impl TAI64N
[src]

[src]

Convert SystemTime to TAI64N.

[src]

Convert TAI64Nto SystemTime.

impl TAI64N
[src]

[src]

Convert chrono::DateTime<Utc> to TAI64N

[src]

Convert TAI64N to chrono::DateTime<Utc>

Trait Implementations

impl Debug for TAI64N
[src]

[src]

Formats the value using the given formatter. Read more

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

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

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Copy for TAI64N
[src]

impl Clone for TAI64N
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for TAI64N
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Add<Duration> for TAI64N
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub<Duration> for TAI64N
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl From<SystemTime> for TAI64N
[src]

[src]

Performs the conversion.

impl From<DateTime<Utc>> for TAI64N
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for TAI64N

impl Sync for TAI64N