How to add minutes to a Time object

Viewed 92401

In Ruby, how do I do Time.now + 10.hours?

Is there an equivalent for secs and mins? For example:

Time.now + 15.mins
5 Answers

Time Object

time = Time.now

Adding minutes to a time object:

time + 5.minutes

Related