# File lib/active_support/core_ext/time/calculations.rb, line 203 def beginning_of_day (self - self.seconds_since_midnight).change(:usec => 0) end