Crate pgdatetime

Source
Expand description

SQL date/time types written in Rust, compatible with PostgreSQL’s date/time types.

§Optional features

§serde

When this optional dependency is enabled, Date, Time, Timestamp and Interval implement the serde::Serialize and serde::Deserialize traits.

Structs§

Date
Date (no time of day).
DateTimeError
An error that can be returned when uses date/time types.
Interval
Interval represents delta time.
Time
Time of day (no date).
Timestamp
Timestamp represents absolute time.

Enums§

DateOrder
DateOrder defines the field order to be assumed when reading an ambiguous date (anything not in YYYY-MM-DD format, with a four-digit year field first, is taken to be ambiguous).
DateStyle
DateStyle defines the output formatting choice for date/time types.
DateUnit
Date unit.
FieldType
Field type.
IntervalStyle
Interval style.

Traits§

DateTime
General trait for all date time types.