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