Timex.Parse.DateTime.Tokenizers.Strftime
Implements the parser for strftime-style datetime format strings.
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
Functions
Specs
apply(Timex.DateTime.t, atom, term) ::
{:ok, Timex.DateTime.t} |
{:error, term} |
:unrecognized
Applies a given token + value to the DateTime represented by the current input string.
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.