class TZInfo::Timezone

Public Instance Methods

ical_timezone(date) click to toggle source
# File lib/icalendar/tzinfo.rb, line 46
def ical_timezone(date)
    period = period_for_local(date)
    timezone = Icalendar::Timezone.new
    timezone.timezone_id = identifier
    timezone.add(period.daylight)
    timezone.add(period.standard)
    return timezone
end