Mega Code Archive
Categories
/
Ruby
/
Time
Query with utc (or gmt) to see whether it represents Coordinated Universal Time, or UTC (also known as Greenwich Mean Time or GMT).tx
local_time = Time.local( 2007, "jan", 30, 1, 15, 20 ) local_time.utc? # => false