8000 GitHub - tsafin/c-dt-ffi: LuaJIT wrapper over chansen/c-dt
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tsafin/c-dt-ffi

Repository files navigation

Build LuaRocks module on Linux Build LuaRocks module on MacOSX

LuaJIT module for datetime parsing and manipulations

Prerequisites

LuaJIT 2.0+ or Tarantool 1.10+.

SYNOPSIS

tarantoolctl rocks make

...
tarantool> cdt = require 'c-dt-ffi'
---
...

tarantool> dt1 = cdt{ year = 2020, month = 10, day = 10 }
---
...

tarantool> dt = cdt('2020-10-10')
---
...

tarantool> dt == dt1
---
- true
...

tarantool> dt = cdt('2020-10-10T12:00')
---
...

tarantool> dt1 = cdt{ year = 2020, month = 10, day = 10, hour = 12, minute = 0 }
---
...

tarantool> dt == dt1
---
- true
...

About

LuaJIT wrapper over chansen/c-dt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0