hora-2.0: date time

Safe HaskellNone
LanguageHaskell2010

Data.Time.Hora.Part

Description

convert between UTCTime and DatePart

Synopsis

Documentation

fromUtc' :: (Tz' tz, Integral a) => tz -> UTCTime -> Tz (DatePart a) Source #

specified time zone

Tz (DatePart a) parts show local date & time

see also Data.Time.Hora.Zone

class ToUTC a where Source #

convert DatePart -> UTCTime

Invalid date returns Nothing

Minimal complete definition

toUtc

Methods

toUtc :: a -> Maybe UTCTime Source #

Instances

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

Methods

toUtc :: Tz (DatePart a) -> Maybe UTCTime Source #

Integral a => ToUTC (DatePart a) Source #

assumes DatePart is UTC