Cldr.DateTime.Formatter.minute

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

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

View Source

Specs

minute(Calendar.time(), integer(), Keyword.t()) ::
  String.t() | {:error, String.t()}

Returns the :minute of a time or datetime (format symbol m) as number in string format. The number of m's in the format determines the formatting.

Arguments

Format Symbol

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

SymbolResultsDescription
m3, 10Minimim digits of minutes
mm"03", "12"Number of minutes zero-padded to 2 digits

Examples

iex> Cldr.DateTime.Formatter.minute %{minute: 3}, 1
3

iex> Cldr.DateTime.Formatter.minute %{minute: 3}, 2
"03"
Link to this function

minute(time, n, locale, backend, options \\ [])

View Source

Specs

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