Method: DateTime#at_beginning_of_day

Defined in:
activesupport/lib/active_support/core_ext/date_time/calculations.rb

#at_beginning_of_dayObject

Returns a new DateTime representing the start of the day (0:00).



127
128
129
# File 'activesupport/lib/active_support/core_ext/date_time/calculations.rb', line 127

def beginning_of_day
  change(hour: 0)
end