Create a Time object based on GMT/UTC. : gm « Time « Ruby






Create a Time object based on GMT/UTC.


# Time.gm(year, month, day, hour, min, sec, msec)

puts Time.gm(2008, 8, 31, 2, 3, 4, 5)

 

Related examples in the same category

1.Time.local and Time.gm