pub enum PoSQLTimestampError {
InvalidTimezone(String),
InvalidTimezoneOffset,
InvalidTimeUnit(String),
LocalTimeDoesNotExist,
Ambiguous(String),
ParsingError(String),
UnsupportedPrecision(String),
}
Expand description
Errors related to time operations, including timezone and timestamp conversions. Errors related to time operations, including timezone and timestamp conversions.s
Variants§
InvalidTimezone(String)
Error when the timezone string provided cannot be parsed into a valid timezone.
InvalidTimezoneOffset
Error indicating an invalid timezone offset was provided.
InvalidTimeUnit(String)
Indicates a failure to convert between different representations of time units.
LocalTimeDoesNotExist
The local time does not exist because there is a gap in the local time. This variant may also be returned if there was an error while resolving the local time, caused by for example missing time zone data files, an error in an OS API, or overflow.
Ambiguous(String)
The local time is ambiguous because there is a fold in the local time. This variant contains the two possible results, in the order (earliest, latest).
ParsingError(String)
Represents a catch-all for parsing errors not specifically covered by other variants.
UnsupportedPrecision(String)
Represents a failure to parse a provided time unit precision value, PoSQL supports Seconds, Milliseconds, Microseconds, and Nanoseconds