Class: ReeDatetime::BeginningOfHour
- Inherits:
-
Object
- Object
- ReeDatetime::BeginningOfHour
- Includes:
- Ree::FnDSL
- Defined in:
- lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/beginning_of_hour.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_hour.rb', line 13 def call(date_time = nil) date_time = date_time || now change(date_time, min: 0, sec: 0) end |