Timezone-aware datetime - zdt

Re-written datetime parser/formatter = new possibilities. Yes, it’s a switch-loop state machine :wink: - I did not use labeled switches though to make it work in Zig 0.13.

  • directives with modifier à la Rust chrono, e.g. %z gives a UTC offset +0100 whilst %:z gives the offset with a colon, +01:00
  • added some common formats à la go time pkg, like RFC822 or RFC3339
  • extended ISO calendar handling, e.g. parse from string with %t and convert to a Gregorian calendar date
  • ISO8601 parser now also handles Year - Day-of-Year format
5 Likes