Class: TZInfo::TimezoneTransitionInfo
Instance Method Summary collapse
Instance Method Details
#dtstart ⇒ Object
82 83 84 |
# File 'lib/icalendar/tzinfo.rb', line 82 def dtstart local_start.to_datetime.strftime '%Y%m%dT%H%M%S' end |
#offset_from ⇒ Object
63 64 65 |
# File 'lib/icalendar/tzinfo.rb', line 63 def offset_from previous_offset.ical_offset end |
#offset_to ⇒ Object
67 68 69 |
# File 'lib/icalendar/tzinfo.rb', line 67 def offset_to offset.ical_offset end |
#rrule ⇒ Object
71 72 73 74 75 76 77 78 79 80 |
# File 'lib/icalendar/tzinfo.rb', line 71 def rrule start = local_start.to_datetime # this is somewhat of a hack, but seems to work ok [sprintf( 'FREQ=YEARLY;BYMONTH=%d;BYDAY=%d%s', start.month, ((start.day - 1)/ 7).to_i + 1, start.strftime('%a').upcase[0,2] )] end |