relocant-1.0.0: A PostgreSQL migration CLI tool and library
Safe HaskellSafe-Inferred
LanguageHaskell2010

Relocant.At

Description

This module deals with getting the moment of time something's happened.

Synopsis

Documentation

data At Source #

The moment of time something's happened. (This is a newtype over ZonedTime)

Instances

Instances details
ToJSON At Source # 
Instance details

Defined in Relocant.At

Show At Source # 
Instance details

Defined in Relocant.At

Methods

showsPrec :: Int -> At -> ShowS #

show :: At -> String #

showList :: [At] -> ShowS #

Eq At Source #

Convert to UTC, then check equality.

Instance details

Defined in Relocant.At

Methods

(==) :: At -> At -> Bool #

(/=) :: At -> At -> Bool #

FromField At Source # 
Instance details

Defined in Relocant.At

ToField At Source # 
Instance details

Defined in Relocant.At

Methods

toField :: At -> Action #

format :: String -> At -> String Source #

Format At as a String, using the usual time format string.

now :: IO At Source #

Get current time.

epoch :: At Source #

Get '1970-01-01 00:00:00 UTC' as an At.