hora-2.2.0: date time

Safe HaskellNone
LanguageHaskell2010

Data.Time.Hora.Stamp

Contents

Synopsis

numerical

class Now a where Source #

numeric

Minimal complete definition

now

Methods

now :: IO a Source #

Instances
Now UTCTime Source #
>>> now::IO UTCTime
2016-12-15 10:20:54.664155598 UTC       
Instance details

Defined in Data.Time.Hora.Stamp

Methods

now :: IO UTCTime Source #

Integral a => Now (Tz (DatePart a)) Source #

local timezone

Tz (DatePart a) parts show local date & time

>>> now::IO(Tz (DatePart Int))
Tz CET (DatePart {year = 2016, month = 12, day = 15, hour = 11, minute = 21, second = 21, pico = 657029375000})     
Instance details

Defined in Data.Time.Hora.Stamp

Methods

now :: IO (Tz (DatePart a)) Source #

Integral a => Now (DatePart a) Source #

UTC

>>> now::IO(DatePart Int)
DatePart {year = 2016, month = 12, day = 15, hour = 10, minute = 20, second = 31, pico = 494880242000}
Instance details

Defined in Data.Time.Hora.Stamp

Methods

now :: IO (DatePart a) Source #

String

class Timestamp out where Source #

timestamp in specified format

see Data.Time.Hora.Some for common [Format]s

Minimal complete definition

ts

Methods

ts :: [Format] -> IO out Source #

Instances
Timestamp String Source #

UTC

Instance details

Defined in Data.Time.Hora.Stamp

Methods

ts :: [Format] -> IO String Source #

Timestamp (Tz String) Source #

local timezone

Instance details

Defined in Data.Time.Hora.Stamp

Methods

ts :: [Format] -> IO (Tz String) Source #

ts' :: Tz' tz => [Format] -> tz -> IO (Tz String) Source #

timestamp in specified format, TimeZone | TimeZoneSeries