# File lib/active_support/core_ext/time/calculations.rb, line 210
  def beginning_of_quarter
    beginning_of_month.change(:month => [10, 7, 4, 1].detect { |m| m <= month })
  end