instance method
days_span
Ruby on Rails 4.2.9
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 258
def days_span(day)
(DAYS_INTO_WEEK[day] - DAYS_INTO_WEEK[Date.beginning_of_week]) % 7
end
Defined in activesupport/lib/active_support/core_ext/date_and_time/calculations.rb line 258
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in DateAndTime::Calculations