@hackage timezone-detect0.1.0.0

Haskell bindings for the zone-detect C library

  • Installation

  • Dependencies (1)

  • Dependents (0)

TimezoneDetect

build

Haskell bindings to the excellent ZoneDetect library.

Usage

You'll need timezone database files to work with this library, see instructions in the original repository.

Once you have those files in hand, you'll be able to get a timezone from a given latitude and longitude:

> lookupTimezone "./test/tz_db/timezone21.bin" 40.7831 (-73.9712)
Right "America/New_York"