timex v3.1.25 Timex.Parse.DateTime.Tokenizers.Strftime View Source

Implements the parser for strftime-style datetime format strings.

Link to this section Summary

Functions

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

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

Link to this section Functions

Link to this function apply(_, _, _) View Source
apply(DateTime.t(), atom(), term()) ::
  DateTime.t() |
  {:error, term()} |
  :unrecognized

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

Link to this function tokenize(str) View Source
tokenize(String.t()) ::
  [Timex.Parse.DateTime.Tokenizers.Directive.t()] |
  {:error, term()}

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