Timex.Format.Time.Formatters.Humanized
Handles formatting timestamp values as human readable strings. For formatting timestamps as points in time rather than intervals, use DateFormat
Summary↑
format(timestamp) | Return a human readable string representing the time interval |
Functions
Specs:
- format(Timex.Date.timestamp) :: String.t
Return a human readable string representing the time interval.
Examples
iex> {1435, 180354, 590264} |> Elixir.Timex.Format.Time.Formatters.Humanized.format
"45 years, 6 months, 5 days, 21 hours, 12 minutes, 34 seconds, 590.264 milliseconds"
iex> {0, 65, 0} |> Elixir.Timex.Format.Time.Formatters.Humanized.format
"1 minutes, 5 seconds"