Modul:DateTime: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
2015-11-08
(2015-08-03) |
(2015-11-08) |
||
Zeile 1: | Zeile 1: | ||
local DateTime = { serial = "2015-08 | local DateTime = { serial = "2015-11-08" } -- Date and time objects | ||
local Calc = { } | local Calc = { } | ||
local Meta = { } | local Meta = { } | ||
Zeile 2.124: | Zeile 2.124: | ||
local p = { } | local p = { } | ||
function p.test( args ) | function p.test( args, alien ) | ||
local slang = args.lang | local slang = args.lang | ||
local obj = Meta.fiat( args[ 1 ], | local obj = Meta.fiat( args[ 1 ], false, args.shift ) | ||
local r | local r | ||
if type( obj ) == "table" then | if type( obj ) == "table" then | ||
Zeile 2.177: | Zeile 2.177: | ||
-- 1 -- stamp | -- 1 -- stamp | ||
-- 2 -- spec | -- 2 -- spec | ||
-- lang | -- lang | ||
-- shift | -- shift | ||
Zeile 2.184: | Zeile 2.183: | ||
local v = { frame.args[ 1 ], | local v = { frame.args[ 1 ], | ||
frame.args[ 2 ], | frame.args[ 2 ], | ||
shift = frame.args.shift, | shift = frame.args.shift, | ||
noerror = frame.args.noerror } | noerror = frame.args.noerror } | ||
Zeile 2.191: | Zeile 2.189: | ||
v.shift = false | v.shift = false | ||
end | end | ||
Frame = frame | Frame = frame | ||
l, r = pcall( p.test, v ) | l, r = pcall( p.test, v, frame.args[ 3 ] or frame.args.lang ) | ||
if not l then | if not l then | ||
r = fault( r ) | r = fault( r ) |