class RiCal::Component::TZInfoTimezone

A wrapper class for a Timezone implemented by the TZInfo Gem
(or by Rails)

Public Instance Methods

identifier() click to toggle source

return the time zone identifier

# File lib/ri_cal/component/t_z_info_timezone.rb, line 124
def identifier
  @tzinfo_timezone.identifier
end
local_to_utc(time) click to toggle source

convert time from this time zone to utc time

# File lib/ri_cal/component/t_z_info_timezone.rb, line 114
def local_to_utc(time)
  @tzinfo_timezone.local_to_utc(time.to_ri_cal_ruby_value)
end
utc_to_local(time) click to toggle source

convert time from utc time to this time zone

# File lib/ri_cal/component/t_z_info_timezone.rb, line 119
def utc_to_local(time)
  @tzinfo_timezone.utc_to_local(time.to_ri_cal_ruby_value)
end