timex v3.1.13 Timex.Parse.DateTime.Tokenizer behaviour

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

Summary

Callbacks

apply(arg0, token, value)
apply(DateTime.t, token :: atom, value :: term) ::
  DateTime.t |
  {:error, term} |
  :unrecognized
tokenize(format_string)
tokenize(format_string :: String.t) ::
  [Timex.Parse.DateTime.Tokenizers.Directive.t] |
  {:error, term}