instance method Time#getgm

getgm -> Time[permalink][rdoc]
getutc -> Time

タイムゾーンを協定世界時に設定した Time オブジェクトを新しく生成して返します。

t = Time.local(2000,1,1,20,15,1)   #=> 2000-01-01 20:15:01 +0900
t.gmt?                             #=> false
y = t.getgm                        #=> 2000-01-01 11:15:01 UTC
y.gmt?                             #=> true
t == y                             #=> true