Class: Icalendar::Timezone
- Defined in:
- lib/icalendar/component/timezone.rb
Overview
A Timezone is unambiguously defined by the set of time measurement rules determined by the governing body for a given geographic area. These rules describe at a minimum the base offset from UTC for the time zone, often referred to as the Standard Time offset. Many locations adjust their Standard Time forward or backward by one hour, in order to accommodate seasonal changes in number of daylight hours, often referred to as Daylight Saving Time. Some locations adjust their time by a fraction of an hour. Standard Time is also known as Winter Time. Daylight Saving Time is also known as Advanced Time, Summer Time, or Legal Time in certain countries. The following table shows the changes in time zone rules in effect for New York City starting from 1967. Each line represents a description or rule for a particular observance.
Instance Attribute Summary
Attributes inherited from Component
#name, #properties, #property_params
Instance Method Summary collapse
-
#initialize ⇒ Timezone
constructor
A new instance of Timezone.
- #to_s ⇒ Object
Methods inherited from Component
#method_missing, #print_string
Constructor Details
#initialize ⇒ Timezone
Returns a new instance of Timezone.
17 18 19 20 |
# File 'lib/icalendar/component/timezone.rb', line 17 def initialize() super("VTIMEZONE") @components = components end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Icalendar::Component
Instance Method Details
#to_s ⇒ Object
22 23 24 |
# File 'lib/icalendar/component/timezone.rb', line 22 def to_s super.to_s { |s| s << @components.each { |component| component.to_s } } end |