orville-postgresql-1.0.0.0: A Haskell library for PostgreSQL
CopyrightFlipstone Technology Partners 2023
LicenseMIT
StabilityStable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Orville.PostgreSQL.Raw.PgTime

Description

Since: 1.0.0.0

Synopsis

Documentation

dayToPostgreSQL :: Day -> ByteString Source #

Renders a Day value to a textual representation for PostgreSQL.

Since: 1.0.0.0

day :: Parser Day Source #

An Attoparsec parser for parsing Day from YYYY-MM-DD format. Parsing fails if given an invalid Day.

Since: 1.0.0.0

utcTimeToPostgreSQL :: UTCTime -> ByteString Source #

Renders a UTCTime value to a textual representation for PostgreSQL.

Since: 1.0.0.0

utcTime :: Parser UTCTime Source #

An Attoparsec parser for parsing UTCTime from an ISO-8601 style datetime and timezone with a few PostgreSQL-specific exceptions. See localTime for more details.

Since: 1.0.0.0

localTimeToPostgreSQL :: LocalTime -> ByteString Source #

Renders a LocalTime value to a textual representation for PostgreSQL.

Since: 1.0.0.0

localTime :: Parser LocalTime Source #

An Attoparsec parser for parsing LocalTime from an ISO-8601 style datetime with a few exceptions. The separator between the date and time is always ' ' and never 'T'.

Since: 1.0.0.0