Cldr.DateTime.Formatter.month

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

month(month, n \\ 1, options \\ [])

View Source

Specs

month(Calendar.date(), integer(), Keyword.t()) ::
  String.t() | {:error, String.t()}

Returns the month (format symbol M) of a date for given locale.

Arguments

Format Symbol

The representation of the month is made in accordance with the following table:

SymbolExampleCldr Format
M9Single digit
MM"09"Two digits
MMM"Sep"Abbreviated
MMMM"September"Wide
MMMMM"S"Narrow

Examples

iex> Cldr.DateTime.Formatter.month ~D[2019-09-08]
9

iex> Cldr.DateTime.Formatter.month ~D[2019-09-08], 2
"09"

iex> Cldr.DateTime.Formatter.month ~D[2019-09-08], 3
"Sep"

iex> Cldr.DateTime.Formatter.month ~D[2019-09-08], 4
"September"

iex> Cldr.DateTime.Formatter.month ~D[2019-09-08], 5
"S"
Link to this function

month(date, n, locale, backend, options \\ [])

View Source

Specs

month(Calendar.date(), integer(), locale(), Cldr.backend(), Keyword.t()) ::
  String.t() | {:error, String.t()}