Module:Time/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 443:
args.test_time = args._TEST_TIME_
end
local arguments = {['dayyear']=nil,['month']=nil,['yearday']=nil,['hour']=nil,['min']=nil,['sec']=nil} -- ISO 8601
-- error_msg ('test_time');
local arguments = {['day']=nil,['month']=nil,['year']=nil,['hour']=nil,['min']=nil,['sec']=nil}
local i = 1
for val in string.gmatch(args.test_time, "-%d+") do
arguments[i] = val
i = i + 1
end
if not arguments.day then
-- return error_msg ('test_time');
end
utc_timestamp = os.time(arguments);