Class: RiCal::Component::Timezone::DaylightPeriod
- Inherits:
-
TimezonePeriod
- Object
- RiCal::Component
- TimezonePeriod
- RiCal::Component::Timezone::DaylightPeriod
- Defined in:
- lib/ri_cal/component/timezone/daylight_period.rb
Overview
A DaylightPeriod is a TimezonePeriod during which daylight saving time is in effect
Instance Attribute Summary
Attributes inherited from RiCal::Component
Class Method Summary collapse
-
.entity_name ⇒ Object
:nodoc: all.
Instance Method Summary collapse
Methods inherited from TimezonePeriod
#dtend, #enumeration_instance, #exdate_property, #exrule_property, #fill_cache, #last_before_local, #last_before_utc, #occurrence_cache, #utc_total_offset, #zone_identifier
Methods included from OccurrenceEnumerator
#after_range?, #before_range?, #bounded?, #default_duration, #default_start_time, #each, #enumeration_instance, #occurrences, #recurrence, #recurs?, #set_occurrence_properties!, #zulu_occurrence_range
Methods included from Properties::TimezonePeriod
#==, #add_comment, #add_comments, #add_date_times_to, #add_rdate, #add_rdates, #add_rrule, #add_rrules, #add_tzname, #add_tznames, #comment, #comment=, #comment_property, #comment_property=, #comment_property_from_string, #comments=, #dtstart, #dtstart=, #dtstart_property, #dtstart_property=, #dtstart_property_from_string, #export_properties_to, included, #initialize_copy, #mutual_exclusion_violation, #rdate, #rdate=, #rdate_property, #rdate_property=, #rdate_property_from_string, #rdates=, #remove_comment, #remove_comments, #remove_rdate, #remove_rdates, #remove_rrule, #remove_rrules, #remove_tzname, #remove_tznames, #rrule, #rrule=, #rrule_property, #rrule_property=, #rrule_property_from_string, #rrules=, #tzname, #tzname=, #tzname_property, #tzname_property=, #tzname_property_from_string, #tznames=, #tzoffsetfrom, #tzoffsetfrom=, #tzoffsetfrom_property, #tzoffsetfrom_property=, #tzoffsetfrom_property_from_string, #tzoffsetto, #tzoffsetto=, #tzoffsetto_property, #tzoffsetto_property=, #tzoffsetto_property_from_string
Methods inherited from RiCal::Component
#add_property_date_times_to, #add_subcomponent, #add_x_property, #alarms, #daylight, #default_tzid, #entity_name, #export, #export_prop_to, #export_subcomponent_to, #export_to, #export_x_properties_to, #find_timezone, from_parser, #imported?, #initialize, #initialize_copy, #last_before_local, #last_before_utc, #last_period, #method_missing, parse, parse_string, #parse_subcomponent, #process_line, #prop_string, #standard, #subcomponent_class, #subcomponents, #time_zone_for, #to_s, #tz_info_source?, #valid?, #x_properties
Constructor Details
This class inherits a constructor from RiCal::Component
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RiCal::Component
Class Method Details
.entity_name ⇒ Object
:nodoc: all
7 8 9 |
# File 'lib/ri_cal/component/timezone/daylight_period.rb', line 7 def self.entity_name #:nodoc: "DAYLIGHT" end |
Instance Method Details
#dst? ⇒ Boolean
11 12 13 |
# File 'lib/ri_cal/component/timezone/daylight_period.rb', line 11 def dst? true end |
#swallows_local?(local, std_candidate) ⇒ Boolean
15 16 17 18 19 |
# File 'lib/ri_cal/component/timezone/daylight_period.rb', line 15 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 |