hodatime: A fully featured date/time library based on Nodatime
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
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]
Properties
| Versions | 0.1.1.1, 0.2.1.1, 1.0.0.0, 1.0.0.1.26.178.1, 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] |
| License | BSD-3-Clause |
| Author | Jason Johnson |
| Maintainer | <jason.johnson.081@gmail.com> |
| 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 |
| Uploaded | by jason_j at 2026-08-02T13:52:48Z |
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.0.0.1.26.178.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees