time - other_time â float
time - numeric â time
time - numeric â time
Instance Public methods
Difference â Returns a new Time object that
represents the difference between time and
other_time
, or subtracts the given number of seconds in
numeric
from time.
t = Time.now #=> 2007-11-19 08:23:10 -0600 t2 = t + 2592000 #=> 2007-12-19 08:23:10 -0600 t2 - t #=> 2592000.0 t2 - 2592000 #=> 2007-11-19 08:23:10 -0600
Please login to continue.