Method: DateTime#beginning_of_day
- Defined in:
- lib/standard/facets/date.rb
#beginning_of_day ⇒ Object Also known as: midnight
Returns a new DateTime representing the start of the day (0:00)
308 309 310 |
# File 'lib/standard/facets/date.rb', line 308 def beginning_of_day change(:hour => 0) end |