/* * call-seq: * time.succ => new_time * * Return a new time object, one second later than <code>time</code>. */ static VALUE time_succ(time) VALUE time; { struct time_object *tobj; int gmt; GetTimeval(time, tobj); gmt = tobj->gmt; time = rb_time_new(tobj->tv.tv_sec + 1, tobj->tv.tv_usec); GetTimeval(time, tobj); tobj->gmt = gmt; return time; }