tv_sec()
  public
  
    
    
Returns the value of time as an integer number of seconds since
the Epoch.
t = Time.now
"%10.5f" % t.to_f   
t.to_i              
   
  
    Show source    
    
      static VALUE
time_to_i(VALUE time)
{
    struct time_object *tobj;
    GetTimeval(time, tobj);
    return w2v(wdiv(tobj->timew, WINT2FIXWV(TIME_SCALE)));
}