Sha256: a7dc667a3f0520152d49872760d5b1f16e67043956dae6ea7007a7fa6e732dba
Contents?: true
Size: 660 Bytes
Versions: 1
Compression:
Stored size: 660 Bytes
Contents
module RiCal class Component class Timezone # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
friflaj_ri_cal-0.9.0 | lib/ri_cal/component/timezone/daylight_period.rb |