Sha256: 5ff1fee7d14a106e726e21e858f365779fd4f6654a8d6d3ac47cee5f7d6fee18

Contents?: true

Size: 191 Bytes

Versions: 22

Compression:

Stored size: 191 Bytes

Contents

# frozen_string_literal: true

require "date"

module Refinements
  module DateTimes
    refine DateTime.singleton_class do
      def utc
        now.new_offset 0
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
refinements-8.0.1 lib/refinements/date_times.rb
refinements-8.0.0 lib/refinements/date_times.rb
refinements-7.18.0 lib/refinements/date_times.rb
refinements-7.17.0 lib/refinements/date_times.rb
refinements-7.16.0 lib/refinements/date_times.rb
refinements-7.15.1 lib/refinements/date_times.rb
refinements-7.15.0 lib/refinements/date_times.rb
refinements-7.14.0 lib/refinements/date_times.rb
refinements-7.13.0 lib/refinements/date_times.rb
refinements-7.12.0 lib/refinements/date_times.rb
refinements-7.11.0 lib/refinements/date_times.rb
refinements-7.10.0 lib/refinements/date_times.rb
refinements-7.9.0 lib/refinements/date_times.rb
refinements-7.8.0 lib/refinements/date_times.rb
refinements-7.7.0 lib/refinements/date_times.rb
refinements-7.6.0 lib/refinements/date_times.rb
refinements-7.5.0 lib/refinements/date_times.rb
refinements-7.4.0 lib/refinements/date_times.rb
refinements-7.3.0 lib/refinements/date_times.rb
refinements-7.2.0 lib/refinements/date_times.rb