succ()
public
Return a new time object, one second
later than time.
t = Time.now
t.succ
Show source
static VALUE
time_succ(VALUE time)
{
struct time_object *tobj;
int gmt;
GetTimeval(time, tobj);
gmt = tobj->gmt;
time = rb_time_nano_new(tobj->ts.tv_sec + 1, tobj->ts.tv_nsec);
GetTimeval(time, tobj);
tobj->gmt = gmt;
return time;
}