-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | ZoneInfo library.
--
-- ZoneInfo library.
@package zoneinfo
@version 0.4
-- | Provides access to the Olson zone-info database, using an adapted
-- version of the Olson zone-info library.
module Data.Time.ZoneInfo
type Olson = ForeignPtr COlson
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 an Olson 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.
newOlson :: Maybe String -> IO Olson
-- | 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 Olson object must be
-- serialised across threads.
newOlsonZone :: Olson -> String -> IO OlsonZone
-- | OlsonZone for the UTC time-zone.
utcOlsonZone :: Olson -> OlsonZone
instance ZoneInfo TimeZone
instance ZoneInfo OlsonZone