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.

Source | Google | Stack overflow

Edit

git clone [email protected]:mojombo/chronic.git

cd chronic

open lib/chronic.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chronic-construct-for-pr


# Commit to git

git add lib/chronic.rbgit commit -m "better docs for Chronic.construct"


# Open pull request

gem 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!