instance method
days_span
Ruby on Rails 8.1.2
Since v4.0.13 PrivateSignature
days_span(day)
No documentation comment.
Parameters
-
dayreq
Source
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 366
def days_span(day)
(DAYS_INTO_WEEK.fetch(day) - DAYS_INTO_WEEK.fetch(Date.beginning_of_week)) % 7
end
Defined in activesupport/lib/active_support/core_ext/date_and_time/calculations.rb line 366
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in DateAndTime::Calculations