+

time + numeric â time
Instance Public methods

Addition â Adds some number of seconds (possibly fractional) to time and returns that value as a new Time object.

t = Time.now         #=> 2007-11-19 08:22:21 -0600
t + (60 * 60 * 24)   #=> 2007-11-20 08:22:21 -0600
doc_ruby_on_rails
2015-05-17 18:41:06
Comments
Leave a Comment

Please login to continue.