Skip to content

Commit b4845e6

Browse files
committed
Update iso.ex
1 parent 0f1200f commit b4845e6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/elixir/lib/calendar/iso.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ defmodule Calendar.ISO do
88
applied for all time, consequently the dates give different results
99
before the year 1583 from when the Gregorian calendar was adopted.
1010
11+
Given this is the default calendar used by Elixir, it has one
12+
difference compared to the ISO8601 specification in that it allows
13+
a whitespace instead of `T` as a seperator between date and times
14+
both when parsing and formatting. Strict formatting can be done
15+
by using the `to_iso8601` found in `NaiveDateTime` and `DateTime`.
16+
1117
Note that while ISO 8601 allows times and datetimes to specify
1218
24:00:00 as the zero hour of the next day, this notation is not
1319
supported by Elixir.

0 commit comments

Comments
 (0)