mirror of
https://github.com/TangentFoxy/lua-date.git
synced 2025-07-27 18:42:18 +00:00
32ac69fc42eddd53691895093ec89b4cd6763aeb
the call `setz(c, x)` would pass 2 arguments, the TZ offset, and TZ abreviated name. WHere only the offset would be used. Hence it is safe to remove the `x` parameter from the call. Fixes #30
LuaDate v2.2
Lua Date and Time module for Lua 5.x.
Features:
- 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.
License
Documentation
Documentation is available in the doc
folder, or online at Github.
Tests
Tests are located in the spec
directory and can be run using busted.
Changelog:
Releasing:
- search for "copyright" and update all occurences with proper years
- update version in:
README.md
(at the top)date.lua
(at the top, and exported fielddate.version
)index.html
(appr. line 20)
- update rockspec
- commit as
release x.y.z
(omit trailing 0) - tag as
version_x.y.z
(omit trailing 0) - push commit & tags
- upload rock to luarocks
Changes:
- v2.2 add 'centuryflip' to set 2 digit year interpretation #26
- v2.1.3 fix rockspec for Lua 5.4
- v2.1.2 fix scientific notation #9, now available for Lua 5.3
- v2.1.1 fix for '>=' operator #3, added test suite, added Travis CI, license MIT
- v2.1 Lua 5.2 support. Global 'date' will no longer be set.
- v2.0 original by Jas Latrix
Languages
Lua
94.6%
Makefile
5.4%