rtfeldman / elm-iso8601-date-strings

Convert between ISO-8601 date strings and Time.Posix
https://package.elm-lang.org/packages/rtfeldman/elm-iso8601-date-strings/latest
BSD 3-Clause "New" or "Revised" License
34 stars 21 forks source link

Support micro- and nano- precision #9

Closed w0rm closed 5 years ago

w0rm commented 5 years ago

I'm porting https://github.com/prometheus/alertmanager to 0.19 and decided to use this nice library! However I noticed that the dates that I'm getting from the backend cannot be parsed.

The actual value coming from Go is 2018-08-31T23:25:16.019345+02:00 that seems to conform with the ISO8601 standard.

After googling around I found this article: https://nbsoftsolutions.com/blog/iso-8601-and-nanosecond-precision-across-languages

Even though we may not support such high precisions, I believe that the parser should not fail in this situation.

w0rm commented 5 years ago

Tests pass for me locally, askElmForMissingTransitiveDependencies seems unrelated.

rtfeldman commented 5 years ago

Cool, thanks @w0rm!

rtfeldman commented 5 years ago

Released as 1.1.1!