https://github.com/daurnimator/luatz
Time, Date and Timezone library for lua
https://github.com/daurnimator/luatz
date datetime lua time timezone zoneinfo
Last synced: 10 months ago
JSON representation
Time, Date and Timezone library for lua
- Host: GitHub
- URL: https://github.com/daurnimator/luatz
- Owner: daurnimator
- License: mit
- Created: 2013-07-12T21:34:27.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-02-29T02:56:44.000Z (almost 2 years ago)
- Last Synced: 2025-03-27T14:55:02.581Z (10 months ago)
- Topics: date, datetime, lua, time, timezone, zoneinfo
- Language: Lua
- Homepage:
- Size: 121 KB
- Stars: 124
- Watchers: 12
- Forks: 17
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS
- License: COPYING
Awesome Lists containing this project
- awesome-resty - luatz
- my-awesome-lua - luatz - Time, Date and Timezone library for lua (Resources / Libraries)
- awesome-lua - luatx - Time, date, and timezone library. (Resources / Time and Date)
README
# 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](https://www.iana.org/time-zones) database.
- `strftime` style formatting
[](https://travis-ci.org/daurnimator/luatz) [](https://coveralls.io/github/daurnimator/luatz?branch=master)
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](https://luarocks.org/modules/daurnimator/luatz)
luarocks install luatz