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