Class: ReeDatetime::BeginningOfQuarter
- Inherits:
-
Object
- Object
- ReeDatetime::BeginningOfQuarter
- Includes:
- Ree::FnDSL
- Defined in:
- lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/beginning_of_quarter.rb
Instance Method Summary collapse
Instance Method Details
#call(date_time = nil) ⇒ Object
20 21 22 |
# File 'lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/beginning_of_quarter.rb', line 20 def call(date_time = nil) beginning_of_day(beginning_of_quarter(date_time || now).to_datetime) end |