• Stars
    star
    262
  • Rank 156,077 (Top 4 %)
  • Language
    Lua
  • License
    MIT License
  • Created over 11 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Date & Time module for Lua 5.x

LuaDate v2.2

Unix build Coveralls code coverage Lint SemVer

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.

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 field date.version)
    • index.html (appr. line 20)
  • update changelog below
  • 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.1 released 6-Sep-2023

  • fix parsing timezone offset after a decimal number #33
  • also accept "," as a decimal separator #31
  • fix bad function call (no functional impact) #34

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

More Repositories

1

uuid

A pure Lua uuid generator (modified from a Rackspace module)
Lua
138
star
2

rpi-gpio

Raspberry Pi GPIO interface code for Lua. Based on the Python code by Ben Croston and the Lua code by Andre Simon
C
62
star
3

luawinmulti

Lua build and installation script for Windows, building multiple Lua versions in parallel, including LuaRocks.
Batchfile
56
star
4

binaryheap.lua

Binary heap implementation in Lua
Lua
40
star
5

luawinmake

Windows batch file to build Lua from source
Batchfile
31
star
6

Lua_library_template

Template for a Lua library (C) for Windows and Unix
C
26
star
7

timerwheel.lua

Pure Lua timerwheel implementation
Lua
25
star
8

pe-parser

Lua module to parse a Portable Executable (.exe , .dll, etc.) file and extract metadata
Lua
24
star
9

corowatch

Lua module to watch coroutine usage and kill a coroutine if it fails to yield in a timely manner.
Lua
16
star
10

ulid.lua

Universally Unique Lexicographically Sortable Identifier for Lua
Lua
16
star
11

DarkSideSync

Synchronization library to create Lua bindings for asynchoneous C libraries
C
13
star
12

project.lua

A template for new Lua based projects
CSS
10
star
13

copas-async

Copas-friendly true threads
Lua
8
star
14

CopasTimer

An addon facility for the Copas scheduler that adds timers, backgroundworkers, and (optional) event capabilities to Copas.
Lua
8
star
15

registry

Pure Lua library to fiddle with the Windows registry
Lua
8
star
16

LuaxPL

xPL framework for Lua. xPL is an open protocol intended to permit the control and monitoring of home automation devices. The protocol includes complete discovery and auto-configuration capabilities which support a fully “plug-n-play” architecture.
Lua
8
star
17

pthreads-win32

Unofficial repository, updating to VS2010 with MSVCR100
C
5
star
18

linkedlist.lua

linked-list implementation in Lua
Lua
4
star
19

netcheck

Simple functions to detect changes in network connection status (using luasocket)
Lua
4
star
20

LuaUPnP

A pupnp library binding for Lua
Lua
3
star
21

ncache.lua

Cache with key normalization (or many-to-1 cache)
Lua
3
star
22

resty-test

A setup to quickly test OpenResty Lua code
Makefile
3
star
23

girder-xpl-component

A Girder component to connect Girder to the xPL homeautomation network
Lua
2
star
24

dnsresolver.lua

Lua
2
star
25

accessor.lua

An easy way to access arbitrary depth keys in Lua tables
Lua
2
star
26

fibaroHue

Control Philips Hue from a Fibaro HomeCenter 2
Lua
2
star
27

tabletrack.lua

track table accesses
Lua
2
star
28

xPL4Linux

This is a C based xPL framework that hides most of the details of dealing with xPL. It will handle filtering messages, sending heartbeats, formatting and parsing messages, directing messages to handlers based on where they were bound from, etc. You can use it as the simplest level to format/send/receive/parse xPL messages or add various layers of additional management to simplify more complex xPL idioms. It's designed to be easy to design a new program around or to integrate into an existing program. It includes some example applications showing how to use various features of the framework, including the source to the xPLHub.
C
2
star
29

homie45

Homie bridge for Homie 4 devices to Homie 5
Lua
1
star
30

mod11

Lua modulo11 number generator and verificator
Lua
1
star
31

kong-plugin-dbless-reload

Development plugin to auto-reload during development
Lua
1
star
32

kong-plugin-jwt-fetcher

Kong plugin to fetch and inject JWT tokens into requests
Lua
1
star
33

UPnPgateway

The gateway wraps existing devices, hardware, software in a UPnP manner. Any hard or software can be used by creating your own driver for the gateway.
Lua
1
star
34

LuaxPLHAL

xPL HAL implementation (xPL based home automation server)
Lua
1
star
35

copas-sse

Lua Server-Side-Event client for use with the Copas scheduler
Lua
1
star
36

homie5.lua

Homie library for version 5
Lua
1
star
37

kong-plugin-myauth

test plugin to check declarative sub-tables
Lua
1
star
38

openapi.lua

Generate Lua functions to call OpenAPI operations
CSS
1
star
39

test-dns

Lua
1
star