Class: ReeDatetime::BeginningOfYear
- Inherits:
-
Object
- Object
- ReeDatetime::BeginningOfYear
- Includes:
- Ree::FnDSL
- Defined in:
- lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/beginning_of_year.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_year.rb', line 20 def call(date_time = nil) beginning_of_day(beginning_of_year(date_time || now).to_datetime) end |