Skip to content

v0.3.0

Compare
Choose a tag to compare
@FObersteiner FObersteiner released this 20 Sep 14:07
· 46 commits to master since this release
ad83693

2024-09-20, v0.3.0

Added

  • method nowUTC to Datetime that returns UTC (aware datetime) without needing a timezone argument and returns no error

Changed

  • major API revision, mainly string input/output
    • Datetime now has toString and fromString, as well as fromISO8601 as a shortcut for ISO8601-compatible input
    • string.zig and calendar.zig aren't exported anymore (stringIO.zig is now string.zig), to keep the API concise
  • now returns an error union, in case loading the timezone causes an error

Fixed

  • toString: correctly handle naive datetime with 'i', 'z' and 'Z' directives

Removed

  • POSIX TZ provisions since this is currently not planned
  • method nowLocal from Datetime; this can be achieved with now plus Timezone.tzLocal