The hourglass-fuzzy-parsing package

[Tags:bsd3, library]

This package parses many different date/time formats. Both absolute and relative dates are supported. See the README for more.

[Skip to Readme]


Change log CHANGELOG.markdown
Dependencies base (==4.*), hourglass, parsec (>=3.1) [details]
License BSD3
Author IlyaPortnov, Tanner Doshier <>
Maintainer Tanner Doshier <>
Category Time, Parsing
Home page
Source repository head: git clone git://
Uploaded Fri Jul 24 03:01:03 UTC 2015 by TannerDoshier
Distributions NixOS:
Downloads 205 total (4 in the last 30 days)
0 []
Status Docs available [build log]
Last success reported on 2015-07-24 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for hourglass-fuzzy-parsing

Readme for hourglass-fuzzy-parsing-

Hourglass Fuzzy Parsing

A small package for parsing more human friendly date/time formats into hourglass types. Relative things like:

  • "today", "tomorrow", "yesterday"
  • "in 2 days", "3 weeks ago"
  • "last monday", "next friday"
  • "last month" (1st of this month), "next year" (1st of January of next year)

And absolute things like:

  • "12 September 2012 23:12"

4-digits years may be abbreviated (such as 12 for 2012). Both 12-hour and 24-hour time formats are supported, though only for absolute things currently. Relative times only support offsets of days, weeks, months or years currently. Only English words and sentence structure are supported.

Originally based on the dates package.


  • Support <date> at <time>, e.g., yesterday at 5 pm
  • Support seconds, minutes, and hours for relative times, e.g., "10 minutes ago"
  • Write some tests and benchmarks