-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | ZoneInfo library.
--
-- ZoneInfo library.
@package zoneinfo
@version 0.5
-- | Provides access to the Olson zone-info database, using an adapted
-- version
module Data.Time.ZoneInfo
-- | Library context.
type Context = ForeignPtr CContext
class ZoneInfo a
zoneInfoName :: (ZoneInfo a) => a -> Bool -> IO (String)
zoneInfoMinutes :: (ZoneInfo a) => a -> Bool -> IO Int
posixToZonedTime :: (ZoneInfo a) => a -> POSIXTime -> IO ZonedTime
utcToZonedTime' :: (ZoneInfo a) => a -> UTCTime -> IO ZonedTime
localToPOSIXZoned :: (ZoneInfo a) => a -> LocalTime -> IO (POSIXTime, TimeZone)
localToUTCZoned :: (ZoneInfo a) => a -> LocalTime -> IO (UTCTime, TimeZone)
convertTimeZone :: (ZoneInfo a, ZoneInfo b) => a -> LocalTime -> b -> IO ZonedTime
-- | Create a Context object. A path to the zone-info database may
-- be specified. Otherwise, the TZDIR environment variable, or a
-- reasonable default, will be used. An IOError will be thrown on
-- failure.
newContext :: Maybe String -> IO Context
-- | Obtain an OlsonZone object based on the specified Olson
-- identifier or time-zone. If the zone-info database cannot be found, or
-- the time-zone not recognised, then an IOError will be thrown.
-- Calls to this function for a given Context must be serialised
-- across threads.
newOlsonZone :: Context -> String -> IO OlsonZone
-- | OlsonZone for the UTC time-zone.
utcOlsonZone :: Context -> OlsonZone
instance ZoneInfo TimeZone
instance ZoneInfo OlsonZone