Class: ReeDatetime::BeginningOfDay

Inherits:
Object
  • Object
show all
Includes:
Ree::FnDSL
Defined in:
lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/beginning_of_day.rb

Instance Method Summary collapse

Instance Method Details

#call(date_time = nil) ⇒ Object



13
14
15
16
# File 'lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/beginning_of_day.rb', line 13

def call(date_time = nil)
  date_time = date_time || now
  change(date_time, hour: 0, min: 0, sec: 0)
end