Access to current real time
Posted: Fri Nov 09, 2018 12:14 pm
Hi,
there is in the LuaGameScript class an access to the write_file function of the os lua lib. Working on a mod that display timers I'm asked to add a current local time visualisation on the GUI. To answer this, after some lua digging, I found the os.clock() function (https://www.lua.org/pil/22.1.html) I can work with in lua, but here is no access to this function through the Factorio API.
Is it possible to make this function accessible through the Factorio API.
Thanks.
there is in the LuaGameScript class an access to the write_file function of the os lua lib. Working on a mod that display timers I'm asked to add a current local time visualisation on the GUI. To answer this, after some lua digging, I found the os.clock() function (https://www.lua.org/pil/22.1.html) I can work with in lua, but here is no access to this function through the Factorio API.
Is it possible to make this function accessible through the Factorio API.
Thanks.