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






Is daylight saving time by time zone


ENV['TZ'] = 'US/Pacific'
pacific = Time.local(2006, 10, 1)      # => Sun Oct 01 00:00:00 PDT 2006
pacific.isdst                          # => true

 








Related examples in the same category

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