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