RUBY: Date and Time functions in ruby on rails By Administrator on 3:00 AM in date, rails, ruby, rubyonrails To get the current time: time = Time.now To get the current year: year = Time.now.Year Tweet