Sha256: 3074adfd858fc62ede7edc8df5f64b3f919244917be9a58496efc9a4ad60e49a

Contents?: true

Size: 764 Bytes

Versions: 56

Compression:

Stored size: 764 Bytes

Contents

module RiCal
  class Component
    class Timezone
      #- ©2009 Rick DeNatale, All rights reserved. Refer to the file README.txt for the license
      #
      # A DaylightPeriod is a TimezonePeriod during which daylight saving time *is* in effect
      class DaylightPeriod < TimezonePeriod #:nodoc: all

        def self.entity_name #:nodoc:
          "DAYLIGHT"
        end

        def dst?
          true
        end

        def swallows_local?(local, std_candidate)
          ([local.year, local.month, local.day] == [dtstart.year,dtstart.month, dtstart.day]) && 
             local >= dtstart_property &&
             local.advance(:seconds => (std_candidate.utc_total_offset - utc_total_offset)) < dtstart_property
        end
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 8 rubygems

Version Path
demingfactor-ri_cal-0.10.0 lib/ri_cal/component/timezone/daylight_period.rb
demingfactor-ri_cal-0.9.0 lib/ri_cal/component/timezone/daylight_period.rb
ebeigarts-ri_cal-0.8.1 lib/ri_cal/component/timezone/daylight_period.rb
rubyredrick-ri_cal-0.0.10 lib/ri_cal/component/timezone/daylight_period.rb
rubyredrick-ri_cal-0.0.11 lib/ri_cal/component/timezone/daylight_period.rb
rubyredrick-ri_cal-0.0.7 lib/ri_cal/component/timezone/daylight_period.rb
rubyredrick-ri_cal-0.0.8 lib/ri_cal/component/timezone/daylight_period.rb
rubyredrick-ri_cal-0.0.9 lib/ri_cal/component/timezone/daylight_period.rb
rubyredrick-ri_cal-0.5.0 lib/ri_cal/component/timezone/daylight_period.rb
rubyredrick-ri_cal-0.5.1 lib/ri_cal/component/timezone/daylight_period.rb
rubyredrick-ri_cal-0.5.2 lib/ri_cal/component/timezone/daylight_period.rb
rubyredrick-ri_cal-0.5.3 lib/ri_cal/component/timezone/daylight_period.rb
rubyredrick-ri_cal-0.6.0 lib/ri_cal/component/timezone/daylight_period.rb
rubyredrick-ri_cal-0.6.1 lib/ri_cal/component/timezone/daylight_period.rb
rubyredrick-ri_cal-0.6.2 lib/ri_cal/component/timezone/daylight_period.rb
rubyredrick-ri_cal-0.6.3 lib/ri_cal/component/timezone/daylight_period.rb
rubyredrick-ri_cal-0.7.0 lib/ri_cal/component/timezone/daylight_period.rb
rubyredrick-ri_cal-0.7.1 lib/ri_cal/component/timezone/daylight_period.rb
rubyredrick-ri_cal-0.7.2 lib/ri_cal/component/timezone/daylight_period.rb
rubyredrick-ri_cal-0.7.4 lib/ri_cal/component/timezone/daylight_period.rb