tz: Efficient time zone handling

[ apache, data, library ] [ Propose Tags ]

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]


Automatic Flags

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


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


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],,,,,,,,,,,,,,,,,,,,,,
Dependencies base (>=4 && <5), binary (>=0.5 && <0.11), bytestring (>=0.9 && <0.13), containers (>=0.5 && <0.8), data-default (>=0.5 && <0.8), deepseq (>=1.1 && <2), template-haskell (>=2.6 && <2.22), time (>=1.2 && <1.15), tzdata (>=0.1 && <0.3), vector (>=0.9 && <0.14) [details]
License Apache-2.0
Author Mihaly Barasz, Gergely Risko
Maintainer Janus Troelsen <>
Revised Revision 6 made by janus at 2024-03-11T00:09:43Z
Category Data
Home page
Bug tracker
Source repo head: git clone
Uploaded by janus at 2022-01-28T22:51:19Z
Distributions Arch:, LTSHaskell:, NixOS:, Stackage:
Reverse Dependencies 12 direct, 3 indirect [details]
Downloads 22048 total (80 in the last 30 days)
Rating 2.25 (votes: 2) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-01-28 [all 1 reports]

Readme for tz-

[back to package description]


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