Module: Icalendar::TimezoneOffset

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

Instance Method Summary collapse

Instance Method Details

#ical_offsetObject


84
85
86
87
# File 'lib/icalendar/tzinfo.rb', line 84

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