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§
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.
- Date
Time - A representation of a date and time.
- Date
Time Builder - 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§
- From
Date - Convert from a date into a datetime, by way of a builder.