hora-1.1.1: date time

Safe HaskellNone
LanguageHaskell2010

Data.Time.Hora.Timestamp

Contents

Synopsis

numerical

now :: Num a => IO (DatePart a) Source #

UTC

>>> now
DatePart {year = 2016, month = 12, day = 14, hour = 9, minute = 7, second = 10, pico = 233275605000}

now' :: Num a => IO (Tz (DatePart a)) Source #

current timezone

>>> now'
Tz CET (DatePart {year = 2016, month = 12, day = 14, hour = 10, minute = 7, second = 26, pico = 498313115000})

string

t :: IO String Source #

time UTC

>>> t
09:11:18

tf :: IO String Source #

time.fraction UTC

>>> tf
09:10:58.030311306

dt :: IO String Source #

date, time UTC

>>> dt
"2016-12-14 09:16:23"

d :: IO String Source #

date yyyymmdd

UTC

>>> d
"20161214"

d' :: IO (Tz String) Source #

date yyyymmdd

local timezone

>>> d'
Tz CET "20161214"