Cldr.DateTime.Formatter.millisecond

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

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

View Source

Specs

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

Returns the time (format symbol A) as millisenconds since midnight.

Arguments

Format Symbol

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

SymbolResultsDescription
A+"4000"Minimum necessary digits of milliseconds since midnight

Examples

iex> Cldr.DateTime.Formatter.millisecond %{hour: 0, minute: 0,
...>   second: 4, microsecond: {2000, 3}}, 1
"4002"

iex> Cldr.DateTime.Formatter.millisecond %{hour: 0, minute: 0, second: 4}, 1
"4000"

iex> Cldr.DateTime.Formatter.millisecond %{hour: 10, minute: 10, second: 4}, 1
"36604000"

iex> Cldr.DateTime.Formatter.millisecond ~T[07:35:13.215217]
"27313215"
Link to this function

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

View Source

Specs

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