Calendar v1.0.0 Calendar.Time.Format View Source

Link to this section Summary

Functions

Format a time as ISO 8601 extended format

Format as ISO 8601 Basic

Link to this section Functions

Format a time as ISO 8601 extended format

Examples

iex> Calendar.Time.from_erl!({20, 5, 18}) |> Calendar.Time.Format.iso8601
"20:05:18"

Format as ISO 8601 Basic

Examples

iex> Calendar.Time.from_erl!({20, 10, 20}) |> Calendar.Time.Format.iso_8601_basic
"201020"