# File lib/active_support/core_ext/time/calculations.rb, line 204 def beginning_of_month #self - ((self.mday-1).days + self.seconds_since_midnight) change(:day => 1, :hour => 0) end