class XlsxParser::Styles::Converter

Defined in:

xlsx-parser/styles/converter.cr

Constant Summary

ISO_DATE_FORMATS = ["%FT%T.%N", "%FT%T", "%F"]

Class Method Summary

Class Method Detail

def self.call(value : String, type : String | Nil, style : Format | Nil, book : Book) : Sheet::Type #

Convert the raw value of a cell given its type attribute (t) and style format.

Handled cell types: s (shared string), inlineStr, str (formula string), e (error), b (boolean), d (ISO 8601 date) and n (number, the default).


[View source]