Giter Club home page Giter Club logo

lua-date's Introduction

#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)

lua-date's People

Contributors

tieske avatar wscherphof avatar subnetmarco avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.