Skip to content
A dirt simple library for parsing and formatting human readable dates
Ruby JavaScript Shell
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



A dirt simple library for parsing human readable dates (Today, Yesterday, Last Monday).

Why not Chronic or Tickle

Chronic and Tickle both parse a heap of formats. That's not useful to me when they fail on cases I want (14 Sep), and also not useful because I don't need times or spans. I just want to replace my calendar picker.

In addition, Kronic can take a date and give you a human readable form, neither of which Chronic nor Tickle does.

Oh yeah, Kronic is less than 60 lines of code.


gem install kronic

Kronic.parse("Today")     # =>
Kronic.format( # => "Today"

See the specs for all the supported formats (there are not many).


I only need date selection in the past for my application, so Kronic only does that so far. I'm not opposed to support “next monday”, patches welcome. Kronic will be totally timezone aware. It may or may not be now, I haven't specced it.

Something went wrong with that request. Please try again.