| 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 | |
| IsScalar Time Source # | |
Defined in PostgresqlTypes.Time Methods schemaName :: Tagged Time (Maybe Text) # typeName :: Tagged Time Text # baseOid :: Tagged Time (Maybe Word32) # arrayOid :: Tagged Time (Maybe Word32) # typeParams :: Tagged Time [Text] # typeSignature :: Tagged Time Text # binaryEncoder :: Time -> Write # binaryDecoder :: Variable (Either DecodingError Time) # textualEncoder :: Time -> TextBuilder # | |
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.