| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
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(...))'.
|
| |
|
|
|
|
|
| |
Ensure that string library is loaded by explicitly requiring it.
Corrected comments. Added TODO for dealing with leap years.
|
|
|
|
|
|
|
|
| |
This allows simply running:
require("posixtz")
to provide access to functions:
posixtz.from_file()
posixtz.parse()
|
|
|
|
| |
This is necessary in order to configure posixtz.lua with additional functions.
|
|
|
|
| |
The parse() function takes a POSIX TZ string and returns a table with TZ parameters.
|
| |
|
|
|