Module timestamp

Source
Expand description

Methods for checked timestamp operations.

Structs§

CheckedTimestamp
InvalidTimestampPrecisionError
The error returned when constructing a VarCharMaxLength from an invalid value.
PackedNaiveDateTime
An encoded packed variant of NaiveDateTime.
ProtoFromToTimestampPrecisions
Helper struct for representing from and to precisions each of type Option<TimestampPrecision>.
ProtoOptionalTimestampPrecision
Helper struct for representing Option<TimestampPrecision>.
ProtoTimestampPrecision
TimestampPrecision
The max_precision of a ScalarType::Timestamp or ScalarType::TimestampTz.

Enums§

TimestampError

Constants§

HOURS_PER_DAY 🔒
MAX_PRECISION
MINUTES_PER_HOUR 🔒
MONTHS_PER_YEAR 🔒
NANOSECONDS_PER_HOUR 🔒
NANOSECONDS_PER_MINUTE 🔒
NANOSECONDS_PER_SECOND 🔒
SECONDS_PER_MINUTE 🔒

Statics§

HIGH_DATE
LOW_DATE

Traits§

DateLike
Common set of methods for date component.
TimeLike
Common set of methods for time component.
TimestampLike
A timestamp with both a date and a time component, but not necessarily a timezone component.