A pure Haskell parser and renderer for binary Olson timezone files
Go to file
2018-03-14 14:19:03 +02:00
Data/Time/LocalTime/TimeZone Bump version to 0.1.9. 2018-03-14 13:46:38 +02:00
.gitignore Bump version to 0.1.7 and clean up cabal file. 2015-04-30 14:09:53 +03:00
.travis.yml Limit travis CI to GHC >= 8. 2018-03-14 14:19:03 +02:00
catTZ.hs Added catTz.hs. 2011-11-10 18:20:56 +00:00
hzdump.hs Allow range of years for cutoff in hzdump, like zdump. 2010-05-17 18:07:15 +00:00
LICENSE Bump version to 0.1.9. 2018-03-14 13:46:38 +02:00
README.md Bump version to 0.1.9. 2018-03-14 13:46:38 +02:00
Setup.hs Ran cabal init. 2010-05-20 11:19:39 +00:00
timezone-olson.cabal Limit travis CI to GHC >= 8. 2018-03-14 14:19:03 +02:00

timezone-olson

On Hackage: timezone-olson

This package provides a parser and renderer for binary Olson timezone files whose format is specified by the tzfile(5) man page on Unix-like systems. For more information about this format, see the IANA timezone database site.

Functions are provided for converting the parsed data into TimeZoneSeries objects from the timezone-series package. On many platforms, binary Olson timezone files suitable for use with this package are available in the directory /usr/share/zoneinfo and its subdirectories on your computer.

See also the timezone-olson-th package for a way to include timezone informaton from a binary Olson timezone file at compile time.

Copyright (c) 2010-2018 Yitzchak Gale. All rights reserved.

For licensing information, see the BSD3-style license in the file LICENSE that was originally distributed by the author together with this file.

This package is part of the time-ng project.

Testing utilities

This package also provides two Haskell files, each of which can be compiled into a command-line utility that might be helpful for testing purposes.

zhdump.hs: A clone of zdump(8), including most of its bugs, that is usually present on systems that have an Olson timezone database, except hzdump takes paths to timezone files instead of timezone identifiers on the command line.

catTZ: Read and parse a timezone file, then render it. With the -i flag, interprets the timezone data as a TimeZoneSeries object before rendering.