Sha256: 841b7c8d103270ad14f506f6ec146382827b15a917d4011f91ce8299e639426b

Contents?: true

Size: 794 Bytes

Versions: 45

Compression:

Stored size: 794 Bytes

Contents

module RiCal
  #- ©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
  class FloatingTimezone

    def self.identifier #:nodoc:
      nil
    end

    def self.tzinfo_timezone #:nodoc:
      nil
    end

  def self.rational_utc_offset(local) #:nodoc:
    @offset = RiCal.RationalOffset[0]
  end

    # Return the time unchanged
    def self.utc_to_local(time)
      time.with_floating_timezone.to_ri_cal_date_time_value
    end

    # Return the time unchanged
    def self.local_to_utc(time)
      time.with_floating_timezone.to_ri_cal_date_time_value
    end
  end

end

Version data entries

45 entries across 45 versions & 8 rubygems

Version Path
demingfactor-ri_cal-0.10.0 lib/ri_cal/floating_timezone.rb
demingfactor-ri_cal-0.9.0 lib/ri_cal/floating_timezone.rb
ebeigarts-ri_cal-0.8.1 lib/ri_cal/floating_timezone.rb
rubyredrick-ri_cal-0.5.3 lib/ri_cal/floating_timezone.rb
rubyredrick-ri_cal-0.6.0 lib/ri_cal/floating_timezone.rb
rubyredrick-ri_cal-0.6.1 lib/ri_cal/floating_timezone.rb
rubyredrick-ri_cal-0.6.2 lib/ri_cal/floating_timezone.rb
rubyredrick-ri_cal-0.6.3 lib/ri_cal/floating_timezone.rb
rubyredrick-ri_cal-0.7.0 lib/ri_cal/floating_timezone.rb
rubyredrick-ri_cal-0.7.1 lib/ri_cal/floating_timezone.rb
rubyredrick-ri_cal-0.7.2 lib/ri_cal/floating_timezone.rb
rubyredrick-ri_cal-0.7.4 lib/ri_cal/floating_timezone.rb
rubyredrick-ri_cal-0.7.5 lib/ri_cal/floating_timezone.rb
rubyredrick-ri_cal-0.7.7 lib/ri_cal/floating_timezone.rb
rubyredrick-ri_cal-0.8.0 lib/ri_cal/floating_timezone.rb
rubyredrick-ri_cal-0.8.1 lib/ri_cal/floating_timezone.rb
rubyredrick-ri_cal-0.8.2 lib/ri_cal/floating_timezone.rb
rubyredrick-ri_cal-0.8.4 lib/ri_cal/floating_timezone.rb
awallis-ri_cal-0.8.8 lib/ri_cal/floating_timezone.rb
justinsoong-ri_cal-0.8.9 lib/ri_cal/floating_timezone.rb