This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://gist.github.com/eric1234/3739149 | |
# | |
# Mass monkey-patching! Provides integration between Chronic, Ruby and | |
# Rails. So now these all work: | |
# | |
# Date.parse "next summer" | |
# DateTime.parse "in 3 hours" | |
# Time.parse "3 months ago saturday at 5:00 pm" | |
# | |
# In addition we override String#to_date, String#to_datetime, String#to_time. |