Tom Preston-Werner has pushed out version 0.3.0 of Chronic, the popular natural language date and time parsing library for Ruby. It’s a significant release because the last was 0.2.3 back in July 2007! Grab it now with gem install chronic
Despite the long time between releases, Chronic hasn’t gone without attention. It’s been sitting on GitHub and attracting patches for years, but Tom (who’s already pretty busy, y’know, running GitHub) has now decided to bundle it up and push it live.
What does 0.3.0 get you?
- Improved time-zone support
- Handles “on” in phrases like “10am on Saturday”
- Now ignores commas (which could throw it off before)
- Supports “weekend” and “weekday”
- Allows numeric timezone offsets (e.g.