node package manager


Lua Date and Time module for Lua 5.x

LuaDate v2.1

Lua Date and Time module for Lua 5.x.

  • Date and Time string parsing.
  • Time addition and subtraction.
  • Time span calculation.
  • Support ISO 8601 Dates.
  • Local time support.
  • Lua module (not binary).
  • Formats Date and Time like strftime.
  • v2.1 NPM support
  • v2.1 Lua 5.2 support. Global 'date' will no longer be set.
  • v2.0 original by Jas Latrix

Use either LuaRocks or NPM to install

Setup LuaRocks and then just luarocks install date

Setup lua-loader and then just npm install lua-date

local date = require("lua-date")

See API doc (which is a browseable version of doc/index.html)