Module:Time/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 424:
 
if is_set (args._TEST_TIME_) then -- typically used to test the code at a specific utc time
localif test_time =not get_test_time (args._TEST_TIME_); then
if not test_time then
return error_msg ('test_time');
end
 
utc_timestamp = os.time(test_time);
else
Line 480 ⟶ 478:
end
 
elseif Timeonly or DF:match (== '^%d+$12' or DF == '24') then -- time only of |df= is just digits
DF = table.concat ({'t', DF:match ('%l*(12)') or '24'}); -- |df=12, |df=24, |df=dmy12, |df=dmy24, |df=mdy12, |df=mdy24; default to t24