Mega Code Archive
Categories
/
Ruby
/
Time
Check whether a time is daylight savings time or not with dst or isdst
local_time = Time.local( 2007, "jan", 30, 1, 15, 20 ) local_time.dst? # => false