Time.local and Time.gm : gm « Time « Ruby






Time.local and Time.gm

require 'date'
puts Time.local(1999, 12, 31, 23, 21, 5, 1044)

puts Time.gm(1999, 12, 31, 23, 21, 5, 22, 1044)

puts Time.local(1991, 10, 1)

puts Time.gm(2000)

 








Related examples in the same category

1.Create a Time object based on GMT/UTC.