Crate sqldatetime[][src]

Expand description

This crate provides SQL date/time types.

Feature Flags

  • serde: Enable serde-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.

OracleDateoracle

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

WeekDay

Weekdays in the order of 1..=7 Sun..=Sat for formatting and calculation use

Traits

DateTime

General trait for all date time types.