Method: Time#gmtoff

Defined in:
time.c

#gmt_offsetFixnum #gmtoffFixnum #utc_offsetFixnum

Returns the offset in seconds between the timezone of time and UTC.

t = Time.gm(2000,1,1,20,15,1)   #=> Sat Jan 01 20:15:01 UTC 2000
t.gmt_offset                    #=> 0
l = t.getlocal                  #=> Sat Jan 01 14:15:01 CST 2000
l.gmt_offset                    #=> -21600

Overloads:



1686
1687
1688
# File 'time.c', line 1686

static VALUE
time_utc_offset(time)
VALUE time;