Crate sqldatetime
source ·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 represents a valid Gregorian date.
- Date/Time formatter.
Day-Time Interval
represents the duration of a period of time, has an interval precision that includes DAY, HOUR, MINUTE, SECOND, MICROSECOND.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.- OracleDate
oracle
Oracle orientedDate
type. - Time represents a valid time of day.
- Timestamp represents a valid time at a valid Gregorian date.
Enums
- An error that can be returned when uses date/time types.
- Months in the order of 1..=12 January..=December for formatting use
- Weekdays in the order of 1..=7 Sun..=Sat for formatting and calculation use
Traits
- General trait for all date time types.
- Round trait for Timestamp/Date/OracleDate
- Trunc trait for Timestamp/Date/OracleDate