| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
PostgresqlTypes.Time
Contents
Synopsis
- data Time
- toMicroseconds :: Time -> Int64
- toTimeOfDay :: Time -> TimeOfDay
- normalizeFromMicroseconds :: Int64 -> Time
- refineFromTimeOfDay :: TimeOfDay -> Maybe Time
- normalizeFromTimeOfDay :: TimeOfDay -> Time
Documentation
PostgreSQL time type. Time of day (without time zone).
Gets stored as microseconds since midnight (00:00:00).
Range: 00:00:00 to 24:00:00.
Instances
| Arbitrary Time Source # | |
| Eq Time Source # | |
| Ord Time Source # | |
| IsString Time Source # | |
Defined in PostgresqlTypes.Time Methods fromString :: String -> Time # | |
| Bounded Time Source # | |
| Read Time Source # | |
| Show Time Source # | |
| Hashable Time Source # | |
Defined in PostgresqlTypes.Time | |
| IsBinaryPrimitive Time Source # | |
Defined in PostgresqlTypes.Time | |
| IsPrimitive Time Source # | |
Defined in PostgresqlTypes.Time | |
Accessors
toMicroseconds :: Time -> Int64 Source #
Extract the underlying microseconds value.
Constructors
normalizeFromMicroseconds :: Int64 -> Time Source #
Construct a PostgreSQL Time from microseconds, clamping to valid range.