TimeOffset allows the user to sync game time with local time.
The sync time can then be used by other mods.
While I was evaluating mods I noticed that every
mod that uses date/time functions has its own sync function.
And it was a pain in the ass to sync the time for every mod.
So I wrote this mod.
TimeOffset doesn't change anything in the game.
It just allows the user to set the local hour/minute offset from game time,
which can then be accessed by other mods.
Example:
Code:
if TimeOffset then
-- TimeOffset is installed
-- Feel free to call TimeOffset's date / time functions.
timestamp = TimeOffset_GetSyncStamp();
date = TimeOffset_GetSyncArray();
hour,min,wday,year,yday,month,sec,day,isdst = TimeOffset_GetSyncArray();
else
-- TimeOffset is NOT installed
-- Do not attempt to call any TimeOffset functions.
end
Currently you can download TImeOffset
here.