luatz 0.2 Release

I’m happy to announce a new release of luatz: 0.2

My lua library to work with dates and times.

Features include:
  • A os.date compatible class “timetable” supporting normalisation
  • Conversion between locations (time zones) using your local zoneinfo database.
  • RFC-3339 parsing
  • Works with 5.1, 5.2 and LuaJIT.
New in this release:
  • Support for fractional timetable component normalisation
    • e.g. .month=6.5, .day=1 (which could be read as “the first day after the middle of June”) normalises to .month=2, .day=16
  • Top level aliases for common operations
  • Own implementation of stftime formatting (locales are not yet complete)
  • Uses ljsyscall for more accurate time when available
Currently hosted on github (along with documentation and examples): https://github.com/daurnimator/luatz
Available via MoonRocks: https://rocks.moonscript.org/modules/daurnimator/luatz/0.2-1
Source download: https://github.com/daurnimator/luatz/releases/tag/v0.2