Timex.Parse.DateTime.Tokenizer behaviour
Defines the API for a custom tokenizer which can extend Timex's datetime parsing facilities.
Callbacks
Specs:
- apply(Timex.DateTime.t, token :: atom, value :: term) :: Timex.DateTime.t | {:error, term} | :unrecognized
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}