Sha256: 3f498fb37465e57f739c10100a2d4dc1a96a3e4e23213080e800cd11ad63b44f
Contents?: true
Size: 694 Bytes
Versions: 1
Compression:
Stored size: 694 Bytes
Contents
module RiCal # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
friflaj_ri_cal-0.9.0 | lib/ri_cal/floating_timezone.rb |