Cldr.DateTime.Compiler.compile

You're seeing just the function compile, go back to Cldr.DateTime.Compiler module for more information.
Link to this function

compile(format_string, backend, context)

View Source

Specs

compile(String.t(), module(), module()) ::
  {:ok, Cldr.Calendar.calendar()} | {:error, String.t()}

Parse a number format definition

Arguments

  • format_string is a string defining how a date/time/datetime is to be formatted. See Cldr.DateTime.Formatter for the list of supported format symbols.

Returns

Returns a list of function bodies which are grafted onto a function head in Cldr.DateTime.Formatter at compile time to produce a series of functions that process a given format string efficiently.