beginning_of_day()
public
Returns a new Time representing the start of the
day (0:00)
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 212
def beginning_of_day
#(self - seconds_since_midnight).change(:usec => 0)
change(:hour => 0, :min => 0, :sec => 0, :usec => 0)
end