Crate datetime

Source
Expand description

datetime-rs provides a representation of a date and time.

Internal storage is a Unix timestamp and, if the tz feature is enabled (which it is not by default), optionally a TimeZone.

Modules§

interval
Elapsed time (duration) between two fixed DateTimes.

Macros§

date
Construct a date from a YYYY-MM-DD literal.
datetime
Construct a date and time from a YYYY-MM-DD HH:MM:SS literal.
time_interval
Construct a TimeInterval from a domain-specific language.

Structs§

Date
A representation of a single date.
DateTime
A representation of a date and time.
DateTimeBuilder
An intermediate builder for DateTime.

Enums§

Precision
The precision that this timestamp requires in order to represent with no fidelity loss.
Weekday
A representation of the day of the week.

Traits§

FromDate
Convert from a date into a datetime, by way of a builder.