Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem.source_date_epoch
() -> ::Time
source_date_epoch
lib/rubygems.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems.rb, line 1267
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.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0