chronic
https://github.com/mojombo/chronic
Ruby
Chronic is a pure Ruby natural language date parser.
Chronic.construct
Construct a new time object determining possible month overflows and leap years. year - Integer year. month - Integer month. day - Integer day. hour - Integer hour. minute - Integer minute. second - Integer second. Returns a new Time object constructed from these params.
Edit
git clone [email protected]:mojombo/chronic.git
cd chronic
open lib/chronic.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chronic-construct-for-pr
# Commit to gitgit add lib/chronic.rbgit commit -m "better docs for Chronic.construct"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chronic-construct-for-pr
hub pull-request
# Celebrate!