Expand description
This crate provides SQL date/time types.
§Feature Flags
serde
: Enableserde
-based serialization and deserialization. Not enabled by default.oracle
: Enable Oracle oriented datetime type:OracleDate
. Not enabled by default.
Structs§
- Date
- Date represents a valid Gregorian date.
- Formatter
- Date/Time formatter.
- IntervalDT
Day-Time Interval
represents the duration of a period of time, has an interval precision that includes DAY, HOUR, MINUTE, SECOND, MICROSECOND.- IntervalYM
Year-Month Interval
represents the duration of a period of time, has an interval precision that includes a YEAR field or a MONTH field, or both.- Oracle
Date - Oracle oriented
Date
type. - Time
- Time represents a valid time of day.
- Timestamp
- Timestamp represents a valid time at a valid Gregorian date.
Enums§
- Error
- An error that can be returned when uses date/time types.
- Month
- Months in the order of 1..=12 January..=December for formatting use
- Sign
- WeekDay
- Weekdays in the order of 1..=7 Sun..=Sat for formatting and calculation use