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






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


local_time = Time.local( 2007, "jan", 30, 1, 15, 20 )

local_time.utc? # => false

 

Related examples in the same category

1.Time.utc