Cldr.DateTime.Formatter.standalone_month
You're seeing just the function
standalone_month, go back to Cldr.DateTime.Formatter module for more information.
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
dateis aDatestruct or any map that contains at least the keys:monthand:calendarnin an integer between 1 and 5 that determines the format of the monthlocaleis any valid locale name returned byCldr.known_locale_names/0or aCldr.LanguageTagstruct. The default isCldr.get_locale/0optionsis aKeywordlist of options. There are no options used instandalone_month/4
Format Symbol
The representation of the standalone month is made in accordance with the following table:
| Symbol | Example | Cldr Format |
|---|---|---|
| L | 9 | Single 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"
Specs
standalone_month( Calendar.date(), integer(), locale(), Cldr.backend(), Keyword.t() ) :: String.t() | {:error, String.t()}