Module: Icalendar::TimezoneOffset

Included in:
TZInfo::TimezoneOffset, TZInfo::TimezoneOffsetInfo
Defined in:
lib/icalendar/tzinfo.rb

Instance Method Summary collapse

Instance Method Details

#ical_offsetObject



86
87
88
89
# File 'lib/icalendar/tzinfo.rb', line 86

def ical_offset
  o = utc_total_offset
  sprintf '%+-2.2d%2.2d', (o / 3600).to_i, ((o / 60) % 60).to_i
end