summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraalatchm <aalatchm@jamailca.com>2011-03-22 18:27:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-03-22 20:58:45 +0000
commitf09479f7052f55c89ca6197daae566b281cc0bc7 (patch)
tree07155c4aa29cb3753bea87de2ec5fbf4e0311ec0
parentc70a7e8158bd81e1b56603ace0a91248e0c02a92 (diff)
downloadposixtz-f09479f7052f55c89ca6197daae566b281cc0bc7.tar.bz2
posixtz-f09479f7052f55c89ca6197daae566b281cc0bc7.tar.xz
glue from_file function from C module into posixtz.lua
This allows simply running: require("posixtz") to provide access to functions: posixtz.from_file() posixtz.parse()
-rw-r--r--posixtz.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/posixtz.lua b/posixtz.lua
index 7eb92dd..74d5d98 100644
--- a/posixtz.lua
+++ b/posixtz.lua
@@ -18,10 +18,13 @@ local string = string
local tonumber = tonumber
local pairs = pairs
local ipairs = ipairs
+local core = require('posixtz.core')
-- Rest of the code is part of module "posixtz"
module('posixtz')
+from_file = core.from_file
+
function parse ( str )
-- create tz table for data to be returned