days()
Returns a Duration instance matching the number of days provided.
2.days # => 2 days
# File activesupport/lib/active_support/core_ext/numeric/time.rb, line 37 def days ActiveSupport::Duration.days(self) end