method

dst?

v1_8_7_72 - Show latest stable - Class: Time
dst?()
public

Returns true if time occurs during Daylight Saving Time in its time zone.

   Time.local(2000, 7, 1).isdst   #=> true
   Time.local(2000, 1, 1).isdst   #=> false
   Time.local(2000, 7, 1).dst?    #=> true
   Time.local(2000, 1, 1).dst?    #=> false