Sha256: a3e8938fae3021fc0e62e161ab69aef516571ce0c9162b09fabaaf50d4458672

Contents?: true

Size: 464 Bytes

Versions: 24

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  ##
  # Give the current time in UTC
  #
  # Use of this service allows a single integration point timestamps. If your
  # application (or test suite) needs to provide a special time for "now", you
  # can override it here.
  #
  # @example
  #   Hyrax::TimeService.time_in_utc
  class TimeService
    ##
    # @return [DateTime] the current time in UTC
    def self.time_in_utc
      DateTime.current
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
hyrax-5.0.1 app/services/hyrax/time_service.rb
hyrax-5.0.0 app/services/hyrax/time_service.rb
hyrax-5.0.0.rc3 app/services/hyrax/time_service.rb
hyrax-5.0.0.rc2 app/services/hyrax/time_service.rb
hyrax-5.0.0.rc1 app/services/hyrax/time_service.rb
hyrax-3.6.0 app/services/hyrax/time_service.rb
hyrax-4.0.0 app/services/hyrax/time_service.rb
hyrax-4.0.0.rc3 app/services/hyrax/time_service.rb
hyrax-4.0.0.rc2 app/services/hyrax/time_service.rb
hyrax-4.0.0.rc1 app/services/hyrax/time_service.rb
hyrax-3.5.0 app/services/hyrax/time_service.rb
hyrax-4.0.0.beta2 app/services/hyrax/time_service.rb
hyrax-3.4.2 app/services/hyrax/time_service.rb
hyrax-4.0.0.beta1 app/services/hyrax/time_service.rb
hyrax-3.4.1 app/services/hyrax/time_service.rb
hyrax-3.4.0 app/services/hyrax/time_service.rb
hyrax-3.3.0 app/services/hyrax/time_service.rb
hyrax-3.2.0 app/services/hyrax/time_service.rb
hyrax-3.1.0 app/services/hyrax/time_service.rb
hyrax-3.0.2 app/services/hyrax/time_service.rb