Calendar v1.0.0 Calendar.NaiveDateTime.Format View Source
Link to this section Summary
Functions
Format a naive datetime as "c time"
Format a naive datetime as ISO 8601 in extended format.
Format a naive datetime as ISO 8601 in basic format.
Link to this section Functions
Link to this function
asctime(ndt) View Source
Format a naive datetime as "c time"
Examples
iex> {{2015, 3, 3}, {7, 5, 3}} |> asctime
"Tue Mar 3 07:05:03 2015"
Link to this function
iso8601(ndt) View Source
Format a naive datetime as ISO 8601 in extended format.
Examples
iex> {{2015, 4, 3}, {7, 5, 3}} |> iso8601
"2015-04-03T07:05:03"
Link to this function
iso8601_basic(ndt) View Source
Format a naive datetime as ISO 8601 in basic format.
Examples
iex> {{2015, 4, 3}, {7, 5, 3}} |> iso8601_basic
"20150403T070503"