Module: Darthjee::CoreExt::Date
- Included in:
- Date
- Defined in:
- lib/darthjee/core_ext/date.rb
Instance Method Summary collapse
-
#days_between(other_date) ⇒ ::Integer
Calculates the number of days between 2 dates.
Instance Method Details
#days_between(other_date) ⇒ ::Integer
Calculates the number of days between 2 dates
29 30 31 |
# File 'lib/darthjee/core_ext/date.rb', line 29 def days_between(other_date) (self - other_date.to_date).abs end |