Cldr.DateTime.Formatter.day_name

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

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

View Source

Specs

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

Returns the weekday name (format symbol E) as an string.

Arguments

Format Symbol

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

SymbolExampleCldr Format
E, EE, EEE"Tue"Abbreviated
EEEE"Tuesday"Wide
EEEEE"T"Narrow
EEEEEE"Tu"Short

Examples

iex> Cldr.DateTime.Formatter.day_name ~D[2017-08-15], 6
"Tu"

iex> Cldr.DateTime.Formatter.day_name ~D[2017-08-15], 5
"T"

iex> Cldr.DateTime.Formatter.day_name ~D[2017-08-15], 4
"Tuesday"

iex> Cldr.DateTime.Formatter.day_name ~D[2017-08-15], 3
"Tue"

iex> Cldr.DateTime.Formatter.day_name ~D[2017-08-15], 2
"Tue"

iex> Cldr.DateTime.Formatter.day_name ~D[2017-08-15], 1
"Tue"
Link to this function

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

View Source

Specs

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