daleharvey / dh_date

Date formatting / parsing library for erlang
41 stars 18 forks source link

Fractional seconds aren't supported #11

Open macintux opened 8 years ago

macintux commented 8 years ago
18> dh_date:parse("2015-05-30T23:59:60.35+05:00").
{error,bad_date}

Per ISO 8601 they should work.

macintux commented 8 years ago

Per https://en.wikipedia.org/wiki/ISO_8601#Times it's actually a bit more complicated.

Fractional units can be applied to the smallest measure of time, so 14:50.30 and 14:50,30 would both refer to 14:50:18.