Time.utc : utc « Time « Ruby






Time.utc


puts Time.utc(year, month, day, hour, min, sec, msec)

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

 

Related examples in the same category

1.Query with utc? (or gmt?) to see whether it represents Coordinated Universal Time, or UTC (also known as Greenwich Mean Time or GMT)