All pastes #390780 Raw Edit

Untitled

public text v1 · immutable
·published 2007-03-11 17:42 UTC
rendered paste body
if (io.open("MangoScript/misc/uptime.dat", "r")) == NIL then
local Uptime = Mango.DataStore.get('MangoScriptUptime');
Uptime.time = os.date("%H:%M");
Mango.DataStore.set('MangoScriptUptime', Uptime);
Mango.DataStore.storetofile('MangoScript/misc/uptime.dat', 'MangoScriptUptime');
end