The tz package

[Tags:apache, benchmark, library, test]

The goal of this package is to provide a library that can read time zone info files (aka. Olson files), and does time zone conversions in a pure and efficient way.

We also provide platform-independent and/or compiled-in access to the standard Time Zone Dabase by the means of the companion tzdata package

The package is currently in an alpha phase, I'm still experimenting with different ideas wrt. scope/API/implementation/etc. All comments are welcome!

[Skip to Readme]


Dependencies base (==4.*), binary (>=0.5 && <0.9), bytestring (>=0.9 && <0.11), containers (==0.5.*), data-default (>=0.5 && <0.8), deepseq (>=1.1 && <2), template-haskell (>=2.6 && <2.12), time (>=1.2 && <1.7), tzdata (==0.1.*), vector (>=0.9 && <0.12) [details]
License Apache-2.0
Author Mihaly Barasz, Gergely Risko
Maintainer Mihaly Barasz <>, Gergely Risko <>
Stability experimental
Category Data
Home page
Bug tracker
Source repository head: git clone
Uploaded Thu Aug 11 19:35:25 UTC 2016 by MihalyBarasz
Distributions NixOS:, Stackage:, Tumbleweed:
Downloads 2273 total (49 in the last 30 days)
1 []
Status Docs pending
Build status unknown [no reports yet]


  • Data
    • Time
      • Data.Time.Zones
        • Data.Time.Zones.All
        • Data.Time.Zones.Internal
          • Data.Time.Zones.Internal.CoerceTH
        • Data.Time.Zones.Read
        • Data.Time.Zones.TH
        • Data.Time.Zones.Types


template-haskellEnable the use of and export Template Haskell functionality. (Might need to disable this for cross-compiling.)EnabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees

Readme for tz

Readme for tz-


Haskell library for:

  • Efficient time zone handling
  • Reading and parsing time zone info files (aka. Olson files)
  • Including time zone information in Haskell binaries in a platform-independent way