Method: Axlsx::CellSerializer.date

Defined in:
lib/axlsx/workbook/worksheet/cell_serializer.rb

.date(cell, str = '') ⇒ String

serializes cells that are type date

Parameters:

  • cell (Cell)

    The cell that is being serialized

  • str (String) (defaults to: '')

    The string the serialized content will be appended to.

Returns:

  • (String)


48
49
50
# File 'lib/axlsx/workbook/worksheet/cell_serializer.rb', line 48

def date(cell, str='')
  value_serialization false, DateTimeConverter::date_to_serial(cell.value).to_s, str
end