[][src]Crate time_util

A crate for more or less frequently used time parsing and formatting functionality.

The crate revolves around the std::time::SystemTime type in that we attempt to convert into that or use this as the base to convert from. We treat such a time as having no associated time zone. Think of it as being in UTC.

Structs

EST

The eastern standard time zone.

UTC

The UTC timezone.

Functions

optional_system_time_from_str

Deserialize an optional time stamp.

optional_system_time_to_rfc3339

Serialize an optional SystemTime into a RFC3339 time stamp.

parse_system_time_from_str

Parse a SystemTime from a string.

system_time_from_date_str

Deserialize a SystemTime from a date.

system_time_from_millis

Deserialize a SystemTime from a timestamp containing the milliseconds since 1970-01-01.

system_time_from_millis_in_tz

Deserialize a SystemTime from a timestamp containing the milliseconds since 1970-01-01 in a given time zone.

system_time_from_secs

Deserialize a SystemTime from a UNIX time stamp.

system_time_from_str

Deserialize a time stamp as a SystemTime.

system_time_to_millis

Serialize a SystemTime into a timestamp containing the milliseconds since 1970-01-01.

system_time_to_rfc3339

Serialize a SystemTime into a RFC3339 time stamp.