Socket
Socket
Sign inDemoInstall

lua-date

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lua-date

Lua Date and Time module for Lua 5.x


Version published
Maintainers
1
Install size
123 kB
Created

Readme

Source

#LuaDate v2.1

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.

##Changes:

  • v2.1 NPM support
  • v2.1 Lua 5.2 support. Global 'date' will no longer be set.
  • v2.0 original by Jas Latrix

Usage

1. Install

Use either LuaRocks or NPM to install

LuaRocks

Setup LuaRocks and then just luarocks install date

NPM

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

2. Require

local date = require("lua-date")

3. Have fun

print(date("2013-06-20T10:32:00+02:00"))

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

Keywords

FAQs

Last updated on 20 Jun 2013

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc