databrary-1: Databrary

Safe HaskellNone
LanguageHaskell2010

Model.Time

Contents

Synopsis

Documentation

type Date = Day Source #

Synomym for a Day

type Timestamp = UTCTime Source #

Synonym for a UTCTime

dateYear :: Date -> Int Source #

Extract year part of a date value

data MaskedDate Source #

Instances

maskDateIf :: Bool -> Date -> MaskedDate Source #

Lift a raw date value into a MaskedDate (either actually masked or unmasked)

maskedYear :: MaskedDate -> Int Source #

Extract year from a potentially masked date value

Orphan instances

Lift UTCTime Source # 

Methods

lift :: UTCTime -> Q Exp #

Lift DiffTime Source # 

Methods

lift :: DiffTime -> Q Exp #

Lift Day Source # 

Methods

lift :: Day -> Q Exp #

Lift (Fixed a0) Source # 

Methods

lift :: Fixed a0 -> Q Exp #