Cldr.DateTime.Formatter.week_of_month

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

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

View Source

Specs

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

Returns the week of the month (format symbol W) as an integer.

Arguments

Format Symbol

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

SymbolExampleCldr Format
W2

Examples

iex> import Cldr.Calendar.Sigils
Cldr.Calendar.Sigils
iex> Cldr.DateTime.Formatter.week_of_month ~D[2019-01-07], 1
"2"
iex> Cldr.DateTime.Formatter.week_of_month ~d[2019-W04-1], 1
"4"
Link to this function

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

View Source

Specs

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