diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-06-20 11:42:21 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-06-20 11:42:21 -0300 |
commit | 4f700edcc094406155785c693363801d0277792c (patch) | |
tree | bbe0186dc87c3039abd13d59c39f8eee8bba14b1 /activerecord/lib/active_record/explain_subscriber.rb | |
parent | 265f13495fb326bd2e6a5bc9cae7e297e42893d0 (diff) | |
parent | 2773257ac64c82affae527436b08e6d627853c1d (diff) | |
download | rails-4f700edcc094406155785c693363801d0277792c.tar.gz rails-4f700edcc094406155785c693363801d0277792c.tar.bz2 rails-4f700edcc094406155785c693363801d0277792c.zip |
Merge pull request #6402 from paranoiase/prev-and-next-quarter
Add prev_quarter and next_quarter methods in Time/Date/DateTime calculations.
Similar to prev_month and next_month, it returns the date with the same day
in the previous or next quarter:
t = Time.local(2010, 5, 8) # => Sat, 08 May 2010
t.prev_quarter # => Mon, 08 Feb 2010
t.next_quarter # => Sun, 08 Aug 2010
Closes #6402
Diffstat (limited to 'activerecord/lib/active_record/explain_subscriber.rb')
0 files changed, 0 insertions, 0 deletions