Is daylight saving time : Day Light Saving « Time « Ruby






Is daylight saving time


eastern = Time.local(2006, 10, 1)      # => Sun Oct 01 00:00:00 EDT 2006
eastern.isdst                          # => true

 








Related examples in the same category

1.Checking Whether Daylight Saving Time Is Currently in Effect
2.Is daylight saving time by time zone
3.Except for the Navajo Nation, Arizona doesn't use Daylight Saving Time.
4.restore the original time zone.