Flowdock
succ() public

Returns a new Time object, one second later than time. Time#succ is obsolete since 1.9.2 for time is not a discrete value.

t = Time.now       #=> 2007-11-19 08:23:57 -0600
t.succ             #=> 2007-11-19 08:23:58 -0600

Use instead time + 1

t + 1              #=> 2007-11-19 08:23:58 -0600
Show source
Register or log in to add new notes.