Only a small number of zone formats are supported in parsing mode. This is discussed a bit in https://github.com/97jaz/gregor/issues/25. The situation could definitely be improved.
- Jon On Thu, Apr 30, 2020 at 11:33 AM Tim Hanson <[email protected]> wrote: > > p.s. I'm stuck on parsing one pattern that comes up in my data. Here's a > corresponding test: > > (parameterize ([current-locale "en"]) > (check-equal? > (parse-datetime "Sun, 21 Jun 2015 17:50:44 -0500 (CDT)" "EEE, dd MMM > yyyy HH:mm:ss xxxx (zzzz)") (datetime 2015 6 21 17 50 44))) > > that fails with > ../../../../../Library/Racket/7.6/pkgs/gregor-lib/gregor/private/pattern/ast/zone.rkt:40:2: > match: no matching clause for (Zone ... 'offset-name 'long) > > > I'm looking at the source code but am not quite sure. Are zone descriptors > such as CDT supported? (I also tried (zzz), but it also fails with > no matching clause for (Zone ... 'offset-name 'short).) > > > In > https://unicode.org/reports/tr35/tr35-dates.html#Date_Format_Patterns > > I find an example: > > Pattern Result (in a particular locale) > yyyy.MM.dd G 'at' HH:mm:ss zzz 1996.07.10 AD at 15:08:56 PDT > > which makes me think it should perhaps work. > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/10f6f25d-6da8-4bbb-9459-ce63ae071c34%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CAKfDxxw3xz65z7Lm60qsYGhkBzR7Du36i9HfCQHzk7sdXxiytg%40mail.gmail.com.

