Xlsxir v1.6.4 Xlsxir.ConvertDate View Source
Converts an ISO 8601 date format serial number, in char_list format, to a date formatted in
Erlang :calendar.date() type format (i.e. {year, month, day}).
Link to this section Summary
Functions
Converts extracted number in char_list format to either integer or float
Receives an ISO 8601 date format serial number and returns a date formatted in Erlang :calendar.date()
type format
Link to this section Functions
Link to this function
convert_char_number(number) View Source
Converts extracted number in char_list format to either integer or float.
Link to this function
from_serial(serial) View Source
Receives an ISO 8601 date format serial number and returns a date formatted in Erlang :calendar.date()
type format.
Parameters
serial- ISO 8601 date format serial inchar_listformat (i.e. 4/30/75 as '27514')
Example
iex> Xlsxir.ConvertDate.from_serial('27514')
{1975, 4, 30}