hodatime: A fully featured date/time library based on Nodatime
HodaTime is a full-featured date and time library for Haskell, inspired by Noda Time (and, in turn, Joda Time) and Erik Naggum's /The Long, Painful History of Time/.
It draws a clear line between physical time (instants, durations and intervals on a global time line) and civil time (calendar dates, local times and the calendar-and-zone rules that connect the two), so the type you are holding always tells you exactly what you can and cannot do with it.
Highlights:
Multiple calendars (Gregorian, ISO, Julian, Coptic, Persian, Islamic and Hebrew) with lossless conversion between them.
Time zones sourced from the operating system (the IANA/Olson database on Unix, the registry on Windows), with explicit resolution of skipped and ambiguous local times across DST transitions.
A type-safe, composable pattern system for parsing and formatting that derives a parser and a formatter together from a single field definition.
Locale-aware formatting driven by the host system's locale data.
[Skip to Readme]
Modules
[Index] [Quick Jump]
- Data
- Data.HodaTime
- Calendar
- Data.HodaTime.CalendarDate
- Data.HodaTime.CalendarDateTime
- Data.HodaTime.Duration
- Data.HodaTime.Exceptions
- Data.HodaTime.Instant
- Data.HodaTime.Interval
- Data.HodaTime.LocalTime
- Data.HodaTime.Locale
- Data.HodaTime.Offset
- Data.HodaTime.OffsetDateTime
- Data.HodaTime.Pattern
- Data.HodaTime.Period
- Data.HodaTime.TimeZone
- Data.HodaTime.ZonedDateTime
- Data.HodaTime
Downloads
- hodatime-1.1.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.1.1.1, 0.2.1.1, 1.0.0.0, 1.1.0.0 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | array (<0.6), base (>=4.16 && <4.21), binary (<0.9), bytestring (<0.13), containers (<0.8), deepseq (>=1.4 && <1.6), directory (<1.4), exceptions (<0.11), filepath (<1.6), fingertree (>=0.1.3 && <0.2), formatting (<7.3), hashable (>=1.3 && <1.6), mtl (<2.4), parsec (<3.2), text (>=0.11.0.8 && <2.2), unix (<2.9), Win32 (<2.15) [details] |
| Tested with | ghc ==9.4.8 || ==9.6.7 || ==9.8.4 || ==9.10.3 |
| License | BSD-3-Clause |
| Author | Jason Johnson |
| Maintainer | <jason.johnson.081@gmail.com> |
| Uploaded | by jason_j at 2026-08-02T14:16:00Z |
| Category | Data, Time |
| Home page | https://github.com/jason-johnson/hodatime |
| Bug tracker | https://github.com/jason-johnson/hodatime/issues |
| Source repo | head: git clone https://github.com/jason-johnson/hodatime |
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Downloads | 1305 total (9 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] |