Learn Ruby
Rietta's post on getting the current year in the Ruby programming language, a small example for Ruby learners.
Subscribe to Learn Ruby posts via RSS
03/13/2015
Get the Current Year in the Ruby programming language
by Frank Rietta
Get the current year in Ruby using Time, Date, or DateTime, then compare benchmark results across these methods on both MRI Ruby 2.2 and JRuby 1.7.19.
Read More: Get the Current Year in the Ruby programming language