method
years
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActiveSupport::CoreExtensions::Numeric::Time
years()
public
Hide source
# File activesupport/lib/active_support/core_ext/numeric/time.rb, line 68 def years ActiveSupport::Duration.new(self * 365.25.days, [[:years, self]]) end