class method
Gem.source_date_epoch
() -> ::Time
source_date_epoch
lib/rubygems.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems.rb, line 1232
def self.source_date_epoch
Time.at(source_date_epoch_string.to_i).utc.freeze
end
Returns the value of Gem.source_date_epoch_string, as a Time object.
This is used throughout RubyGems for enabling reproducible builds.
See also
.solaris_platform?
.source_date_epoch_string
.set_target_rbconfig
.sources
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0