summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fix implicit declaration warnings by including string.h and unistd.hHEADmasterSören Tempel2018-03-271-0/+2
| | | | | string.h is needed for strncmp(3) and unistd.h is needed for read(3), close(3) and lseek(3).
* posixtz: ensure the file offset we pass to lseek is off_tWilliam Pitcock2018-03-271-1/+1
| | | | | on 32-bit systems, sizeof(off_t) is 4, on 64-bit sizeof(off_t) is 8 causing a word masking issue.
* Update posixtz.lua for Lua 5.2 supportv0.5Ted Trask2015-01-191-4/+3
|
* 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