hora-2.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

toTimeZone Source #

Arguments

:: (TwoInt a b, Tz' tz) 
=> tz

target timezone

-> Tz (DatePart a)

local (to source timezone) date & time

-> Maybe (Tz (DatePart b))

local (to target timezone) date & time

Nothing if source date is invalid

convert DatePart from one TimeZone to another