Files
lua-date/README.md
Thijs Schreijer fa3d824e5b release 2.2
2021-07-19 13:14:55 +02:00

38 lines
1.3 KiB
Markdown

# LuaDate v2.1
[![Build Status](https://travis-ci.com/Tieske/date.svg?branch=master)](https://travis-ci.com/Tieske/date)
[![Coverage Status](https://coveralls.io/repos/github/Tieske/date/badge.svg?branch=master)](https://coveralls.io/github/Tieske/date?branch=master)
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
[MIT license](http://opensource.org/licenses/MIT).
## Documentation
Documentation is available in the `doc` folder, or [online at Github](http://tieske.github.io/date/).
## Tests
Tests are located in the `spec` directory and can be run using [busted](http://olivinelabs.com/busted/).
## Changes:
- v2.2 add 'centuryflip' to set 2 digit year interpretation [#26](https://github.com/Tieske/date/pull/26)
- v2.1.3 fix rockspec for Lua 5.4
- v2.1.2 fix scientific notation [#9](https://github.com/Tieske/date/pull/9), now available for Lua 5.3
- v2.1.1 fix for '>=' operator [#3](https://github.com/Tieske/date/pull/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