summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* support for Lua 5.2v0.4Natanael Copa2013-10-072-5/+9
|
* Modified parse() function to avoid throwing exceptions.v0.3aalatchm2011-03-311-7/+6
| | | | | | | | Lua 'error()' function was previously used, but this throws exceptions. If the user does not catch the exceptions, then his code will exit. This commit replaces the 'error()' function with 'return nil, errtxt', which follows the pattern of many Lua functions, such as 'io.open()'. The user can then choose to handle the situation in a manner appropriate for his code. To maintain the previous behavior, the user may call 'assert(posix.parse(...))'.
* added to Lua example to demonstrate posixtz.parsev0.2aalatchm2011-03-221-0/+32
|
* some cleanup of posixtz.luaaalatchm2011-03-221-4/+4
| | | | | Ensure that string library is loaded by explicitly requiring it. Corrected comments. Added TODO for dealing with leap years.
* glue from_file function from C module into posixtz.luaaalatchm2011-03-221-0/+3
| | | | | | | | This allows simply running: require("posixtz") to provide access to functions: posixtz.from_file() posixtz.parse()
* renamed Lua C module to posixtz.coreaalatchm2011-03-222-3/+3
| | | | This is necessary in order to configure posixtz.lua with additional functions.
* added posixtz.lua for parse functionalityaalatchm2011-03-221-0/+192
| | | | The parse() function takes a POSIX TZ string and returns a table with TZ parameters.
* added lua examplev0.1Natanael Copa2011-03-151-0/+6
|
* initial commitNatanael Copa2011-03-156-0/+139