chronic
https://github.com/mojombo/chronic
Ruby
Chronic is a pure Ruby natural language date parser.
Chronic::Date.make_year
Build a year from a 2 digit suffix. year - The two digit Integer year to build from. bias - The Integer amount of future years to bias. Examples: make_year(96, 50) #=> 1996 make_year(79, 20) #=> 2079 make_year(00, 50) #=> 2000 Returns The Integer 4 digit year.
Edit
git clone [email protected]:mojombo/chronic.git
cd chronic
open lib/chronic/date.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chronic--Date-make_year-for-pr
# Commit to gitgit add lib/chronic/date.rbgit commit -m "better docs for Chronic::Date.make_year"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chronic--Date-make_year-for-pr
hub pull-request
# Celebrate!