Cldr.DateTime.Formatter.standalone_month

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

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

View Source

Specs

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

Returns the month (symbol L) in standalone format which is intended to formatted without an accompanying day (d).

Arguments

Format Symbol

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

SymbolExampleCldr Format
L9Single digit
LL"09"Two digits
LLL"Sep"Abbreviated
LLLL"September"Wide
LLLLL"S"Narrow

Examples

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

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

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

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

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

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

View Source

Specs

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