Expand description
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.
Functionsยง
- days_
back - days_
back_ from - next_
day - Calculate the time stamp representing the next day of the given time stamp.
- optional_
system_ time_ from_ str - Deserialize an optional time stamp.
- optional_
system_ time_ to_ rfc3339 - Serialize an optional
SystemTime
into a RFC3339 time stamp. - optional_
system_ time_ to_ rfc3339_ with_ nanos - Serialize an optional
SystemTime
into a RFC3339 time stamp. - parse_
system_ time_ from_ date_ str - Parse a
SystemTime
from a date string. - parse_
system_ time_ from_ str - Parse a
SystemTime
from a string. - print_
system_ time_ to_ iso8601_ date - Print a
SystemTime
as a RFC3339 time stamp. - print_
system_ time_ to_ rfc3339 - Print a
SystemTime
as a RFC3339 time stamp. - print_
system_ time_ to_ rfc3339_ with_ nanos - Print a
SystemTime
as a RFC3339 time stamp. - 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_ new_ york - Deserialize a
SystemTime
from a timestamp containing the milliseconds since 1970-01-01 in the New York 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_ millis_ in_ new_ york - Serialize a
SystemTime
into a timestamp containing the milliseconds since 1970-01-01 in New York. - system_
time_ to_ rfc3339 - Serialize a
SystemTime
into a RFC3339 time stamp. - system_
time_ to_ rfc3339_ with_ nanos - Serialize a
SystemTime
into a RFC3339 time stamp. - tomorrow
- Calculate a
SystemTime
representing 0:00:00 (i.e., the first second of) the next day.