Timex.Parse.DateTime.Tokenizers.Default

Implements the parser for the default DateTime format strings.

Summary

apply(, , )

Applies a given token + value to the DateTime represented by the current input string

tokenize(str)

Tokenizes the given format string and returns an error or a list of directives

Functions

apply(, , )

Specs:

Applies a given token + value to the DateTime represented by the current input string.

tokenize(str)

Specs:

  • tokenize(String.t) :: [%Timex.Parse.DateTime.Tokenizers.Directive{flags: term, modifiers: term, parser: term, type: term, value: term, weight: term, width: term}] | {:error, term}

Tokenizes the given format string and returns an error or a list of directives.