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
Showing
... | ... | @@ -8,7 +8,7 @@ else |
gem 'arel' | ||
end | ||
gem 'minitest', '~> 3.0.0' | ||
gem 'minitest', '~> 3.1.0' | ||
gem 'mocha', '>= 0.11.2' | ||
gem 'rack-test', github: "brynary/rack-test" | ||
gem 'bcrypt-ruby', '~> 3.0.0' | ||
... | ... |
想要评论请 注册 或 登录