Timex.Parse.DateTime.Tokenizer behaviour

Defines the API for a custom tokenizer which can extend Timex's datetime parsing facilities.

Callbacks

apply/3

Specs:

tokenize/1

Specs:

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