method

gmtime

v1_8_6_287 - Show latest stable - Class: Time
gmtime()
public

Converts time to UTC (GMT), modifying the receiver.

   t = Time.now   #=> Wed Apr 09 08:56:03 CDT 2003
   t.gmt?         #=> false
   t.gmtime       #=> Wed Apr 09 13:56:03 UTC 2003
   t.gmt?         #=> true

   t = Time.now   #=> Wed Apr 09 08:56:04 CDT 2003
   t.utc?         #=> false
   t.utc          #=> Wed Apr 09 13:56:04 UTC 2003
   t.utc?         #=> true