Check whether a time is daylight savings time or not with dst? or isdst : dst « Time « Ruby






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

 

Related examples in the same category