rtfeldman/elm-iso8601-date-strings

Doesn't support ISO months

Open

#21 opened on 2019年3月22日

GitHub で見る
 (6 comments) (0 reactions) (0 assignees)Elm (21 forks)github user discovery
help wanted

Repository metrics

Stars
 (37 stars)
PR merge metrics
 (PR metrics pending)

説明

According to Wikipedia at least, it's valid to specify a month only, without a specific day, ie YYYY-MM only. I have an API I'm working with that returns months in this format.

Sadly this throws a parser error: [{ col = 8, problem = ExpectingSymbol "-", row = 1 }].

I can work around it of course by just tacking -01 onto the month, and maybe this is even the correct way you'd translate that format to a Posix date anyway, but I thought I'd point it out.

コントリビューターガイド