Class: RiCal::Component::Timezone::TimezonePeriod
- Inherits:
-
RiCal::Component
- Object
- RiCal::Component
- RiCal::Component::Timezone::TimezonePeriod
- Includes:
- OccurrenceEnumerator, Properties::TimezonePeriod
- Defined in:
- lib/ri_cal/component/timezone/timezone_period.rb
Overview
-
©2009 Rick DeNatale
-
All rights reserved. Refer to the file README.txt for the license
A TimezonePeriod is a component of a timezone representing a period during which a particular offset from UTC is in effect.
to see the property accessing methods for this class see the RiCal::Properties::TimezonePeriod module
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from RiCal::Component
Instance Method Summary collapse
-
#dtend ⇒ Object
:nodoc:.
-
#exdate_property ⇒ Object
:nodoc:.
-
#exrule_property ⇒ Object
:nodoc:.
-
#last_before_local(local_time) ⇒ Object
:nodoc:.
-
#last_before_utc(utc_time) ⇒ Object
:nodoc:.
-
#utc_total_offset ⇒ Object
:nodoc:.
-
#zone_identifier ⇒ Object
:nodoc:.
Methods included from OccurrenceEnumerator
#bounded?, #default_duration, #default_start_time, #each, #occurrences, #recurrence, #set_occurrence_properties!
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, #entity_name, entity_name, #export, #export_prop_to, #export_subcomponent_to, #export_to, #export_x_properties_to, #find_timezone, from_parser, #imported?, #initialize, #initialize_copy, #last_period, #method_missing, parse, parse_string, #parse_subcomponent, #process_line, #prop_string, #standard, #subcomponent_class, #subcomponents, #time_zone_for, #to_s, #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
Instance Method Details
#dtend ⇒ Object
:nodoc:
22 23 24 |
# File 'lib/ri_cal/component/timezone/timezone_period.rb', line 22 def dtend #:nodoc: nil end |
#exdate_property ⇒ Object
:nodoc:
26 27 28 |
# File 'lib/ri_cal/component/timezone/timezone_period.rb', line 26 def exdate_property #:nodoc: nil end |
#exrule_property ⇒ Object
:nodoc:
34 35 36 |
# File 'lib/ri_cal/component/timezone/timezone_period.rb', line 34 def exrule_property #:nodoc: nil end |
#last_before_local(local_time) ⇒ Object
:nodoc:
42 43 44 45 46 47 48 49 |
# File 'lib/ri_cal/component/timezone/timezone_period.rb', line 42 def last_before_local(local_time) #:nodoc: cand_occurrence = nil each do |occurrence| return cand_occurrence if occurrence.dtstart_property > local_time cand_occurrence = occurrence end return cand_occurrence end |
#last_before_utc(utc_time) ⇒ Object
:nodoc:
38 39 40 |
# File 'lib/ri_cal/component/timezone/timezone_period.rb', line 38 def last_before_utc(utc_time) #:nodoc: last_before_local(utc_time + tzoffsetfrom_property) end |
#utc_total_offset ⇒ Object
:nodoc:
30 31 32 |
# File 'lib/ri_cal/component/timezone/timezone_period.rb', line 30 def utc_total_offset #:nodoc: tzoffsetfrom_property.to_seconds end |
#zone_identifier ⇒ Object
:nodoc:
18 19 20 |
# File 'lib/ri_cal/component/timezone/timezone_period.rb', line 18 def zone_identifier #:nodoc: tzname.first end |