Method: XlsFunction::Evaluators::Functions::EOMonth#eval
- Defined in:
- lib/xls_function/evaluators/functions/e_o_month.rb
#eval ⇒ Object
12 13 14 15 16 |
# File 'lib/xls_function/evaluators/functions/e_o_month.rb', line 12 def eval new_date = date_value >> month.to_i last_date_of_month = Date.new(new_date.year, new_date.month, -1) last_date_of_month.to_serial end |