pub struct Timestamp {
    pub tm: Tm,
}

Fields

tm: Tm

Implementations

Methods from Deref<Target = Tm>

Convert time to the seconds from January 1, 1970

Convert time to the local timezone

Convert time to the UTC

Returns a TmFmt that outputs according to the asctime format in ISO C, in the local timezone.

Example: “Thu Jan 1 00:00:00 1970”

Returns a TmFmt that outputs according to the asctime format in ISO C.

Example: “Thu Jan 1 00:00:00 1970”

Formats the time according to the format string.

Returns a TmFmt that outputs according to RFC 822.

local: “Thu, 22 Mar 2012 07:53:18 PST” utc: “Thu, 22 Mar 2012 14:53:18 GMT”

Returns a TmFmt that outputs according to RFC 822 with Zulu time.

local: “Thu, 22 Mar 2012 07:53:18 -0700” utc: “Thu, 22 Mar 2012 14:53:18 -0000”

Returns a TmFmt that outputs according to RFC 3339. RFC 3339 is compatible with ISO 8601.

local: “2012-02-22T07:53:18-07:00” utc: “2012-02-22T14:53:18Z”

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Deserialize this value from the given Serde deserializer. Read more

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.