diff options
author | aalatchm <aalatchm@jamailca.com> | 2011-03-22 18:27:10 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-03-22 20:58:45 +0000 |
commit | f09479f7052f55c89ca6197daae566b281cc0bc7 (patch) | |
tree | 07155c4aa29cb3753bea87de2ec5fbf4e0311ec0 /posixtz.lua | |
parent | c70a7e8158bd81e1b56603ace0a91248e0c02a92 (diff) | |
download | posixtz-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()
Diffstat (limited to 'posixtz.lua')
-rw-r--r-- | posixtz.lua | 3 |
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 |