sysinfo = sys.get_sys_info()
if sysinfo.system_name == "HTML5" then
timestamp = html5.run("Date.now()")
else
timestamp = whatever you are currently doing
end
(But I don’t generally write Lua so someone please correct me if I’m wrong)
I didn’t try it in the end, because in my tests the HTML5 version was exactly 10 times off the editor. I didn’t want to include a fairly large library just to be able to get the time. Trying to save some download time. Facebook Instant, yo!