Sha256: d4fbec0dcd4494fa4976df98cb6b3cd7218d138fd758bc2d614553e89fc2c616

Contents?: true

Size: 288 Bytes

Versions: 10

Compression:

Stored size: 288 Bytes

Contents

module Fog
  class Time < ::Time
    class << self

      def now
        ::Time.now - offset
      end

      def now=(new_now)
        old_now = ::Time.now
        @offset = old_now - new_now
        new_now
      end

      def offset
        @offset ||= 0
      end

    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
fog-0.5.0 lib/fog/core/time.rb
phpfog-fog-0.4.1.3 lib/fog/core/time.rb
phpfog-fog-0.4.1.2 lib/fog/core/time.rb
phpfog-fog-0.4.1.1 lib/fog/core/time.rb
phpfog-fog-0.4.1 lib/fog/core/time.rb
fog-0.4.1 lib/fog/core/time.rb
fog-0.4.0 lib/fog/core/time.rb
fog-0.3.34 lib/fog/core/time.rb
fog-0.3.33 lib/fog/core/time.rb
fog-0.3.32 lib/fog/core/time.rb