Class: ReeDatetime::EndOfQuarter
- Inherits:
-
Object
- Object
- ReeDatetime::EndOfQuarter
- Includes:
- Ree::FnDSL
- Defined in:
- lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/end_of_quarter.rb
Instance Method Summary collapse
Instance Method Details
#call(date_time = nil) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/end_of_quarter.rb', line 20 def call(date_time = nil) end_of_day( end_of_quarter( (date_time.nil? ? now : date_time).to_date ).to_datetime ) end |