luatz icon indicating copy to clipboard operation
luatz copied to clipboard

Time, Date and Timezone library for lua

luatz

A lua library for time and date manipulation.

Features include:

  • Normalisation of broken down date objects
    • allows for complex time/date manipulation logic e.g. "What day is it in 2 days, 5 hours from now?"
  • Conversion between locations (time zones) using your local zoneinfo database.
  • strftime style formatting

Build Status Coverage Status

Supported under Lua 5.1, 5.2, 5.3 and LuaJIT.

Documentation

Documentation can be found in the doc sub-directory.

An online version can be found at https://daurnimator.github.io/luatz/

Installation

via luarocks

luarocks install luatz