chronic
RecommendedChronic is a natural language date/time parser written in pure Ruby.
Save 36% for Black Friday! Save 36% on GoRails for Black Friday! Learn more
Chronic is a natural language date/time parser written in pure Ruby.
A simple Ruby natural language parser for elapsed time. (For example, 4 hours and 30 minutes, 6 minutes 4 seconds, 3 days, etc.) Returns all results in seconds. Will return an integer unless you get tricky and need a float. (4 minutes and 13.47 seconds, for example.) The reverse can also be performed via the output method.
chronic_between
Extracts date, time, and message information from naturally worded text.