summaryrefslogtreecommitdiffstats
path: root/posixtz.lua
Commit message (Collapse)AuthorAgeFilesLines
* Update posixtz.lua for Lua 5.2 supportv0.5Ted Trask2015-01-191-4/+3
|
* 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(...))'.
* 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()
* 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.