Timex.Parsers.DateFormat.Tokenizers.Default
Responsible for tokenizing date/time format strings which use the Default formatter.
Summary↑
tokenize(s) | Takes a format string and extracts parsing directives for the parser |
Functions
Takes a format string and extracts parsing directives for the parser.
Example
iex> Timex.Parsers.Tokenizers.Default.tokenize(“{YYYY}-{0M}-{D}”) [%Directive{token: :year4, ...}, %Directive{token: :month, pad: 1, ...}, ...]