class RiCal::FloatingTimezone
-
©2009 Rick DeNatale
-
All rights reserved. Refer to the file README.txt for the license
FloatingTimezone represents the 'time zone' for a time or date time with no timezone Times with floating timezones are always interpreted in the timezone of the observer
Public Class Methods
local_to_utc(time)
click to toggle source
Return the time unchanged
# File lib/ri_cal/floating_timezone.rb, line 27 def self.local_to_utc(time) time.with_floating_timezone.to_ri_cal_date_time_value end
utc_to_local(time)
click to toggle source
Return the time unchanged
# File lib/ri_cal/floating_timezone.rb, line 22 def self.utc_to_local(time) time.with_floating_timezone.to_ri_cal_date_time_value end