End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem.source_date_epoch
source_date_epoch
lib/rubygems.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems.rb, line 1158
def self.source_date_epoch
Time.at(self.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
.ruby_version
.sources
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0