instance method
days
Ruby on Rails 5.2.8.1
Since v3.0.20Signature
days()
Returns a Duration instance matching the number of days provided.
2.days # => 2 days
Source
# File activesupport/lib/active_support/core_ext/numeric/time.rb, line 37
def days
ActiveSupport::Duration.days(self)
end
Defined in activesupport/lib/active_support/core_ext/numeric/time.rb line 37
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Numeric