hora-2.0: date time

Safe HaskellNone
LanguageHaskell2010

Data.Time.Hora.Zone

Description

to get timezone-series data, see timezone-olson

see also timezone-series

for complete example with olson, see Test.TestZone in this package

import Data.Time.LocalTime.TimeZone.Olson

-- see man tzfile for common olson file locations
getTimeZoneSeriesFromOlsonFile "/usr/share/zoneinfo/Chile/Continental" >>=
    \(chile1::TimeZoneSeries) -> ...            

Synopsis

Documentation

class ToTimeZone a b where Source #

convert a to b in specified TimeZone

Minimal complete definition

toTimeZone

Methods

toTimeZone :: TimeZoneSeries -> a -> b Source #

Instances

Integral a => ToTimeZone UTCTime (Tz (DatePart a)) Source #

similar to fromUtc' but safer around dates when e.g. Summer time changes

Integral a => ToTimeZone (Tz (DatePart a)) (Maybe (Tz (DatePart a))) Source #

convert DatePart from one TimeZone to another