Module:Time/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 849:
utc_timestamp = os.time (); -- get current server time (UTC)
end
utc_offset = get_utc_offset (args[1]); -- utc offset for specified timezone
utc_offset_2 = get_utc_offset_2 (args[1]);
utc_offset_3 = get_utc_offset_3 (args[1]);
timestamp = utc_timestamp + utc_offset; -- make local time timestamp
 
return string.format ('%s:%s', utc_offset_2, utc_offset_3);