timezone-olson: A pure Haskell parser and renderer for binary Olson timezone files

[ bsd3, data, library ] [ Propose Tags ]

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 http://www.twinsun.com/tz/tz-link.htm. 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 usrshare/zoneinfo and its subdirectories on your computer.


[Skip to Readme]

Modules

[Index]

  • Data
    • Time
      • LocalTime

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1
Dependencies base (>=3.0 && <5.0), binary (>=0.4.1 && <0.6), bytestring (>=0.9 && <1.0), extensible-exceptions (>=0.1.0 && <0.2), time (>=1.1.4 && <1.5), timezone-series (>=0.1.0 && <0.2) [details]
License BSD-3-Clause
Copyright Copyright (c) 2010 Yitzchak Gale. All rights reserved.
Author Yitzchak Gale
Maintainer yitz@community.haskell.org
Category Data
Home page http://projects.haskell.org/time-ng/
Uploaded by YitzGale at 2011-11-10T18:24:12Z
Distributions Arch:0.2.1, FreeBSD:0.1.7, LTSHaskell:0.2.1, NixOS:0.2.1, Stackage:0.2.1, openSUSE:0.2.1
Reverse Dependencies 9 direct, 2 indirect [details]
Downloads 20863 total (60 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for timezone-olson-0.1.2

[back to package description]
timezone-olson version 0.1.0

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
<http://www.twinsun.com/tz/tz-link.htm>. 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.

This version of timezone-olson is highly experimental.  Expect there
to be bugs, and do not rely on any stability of the exposed
interfaces.

Copyright (c) 2010 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:
http://projects.haskell.org/time-ng/

Send suggestions, bug reports, and patches to:
yitz@community.haskell.org

INSTALLATION:

To install the latest version of this package, make sure that
cabal-install is installed on your system (it is if you have installed
the Haskell Platform) and type the commands:

cabal update
cabal install timezone-olson

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.