I'm a novice programmer, so apologies in advance if I use imprecise terminology.
I'm currently working with the Binding of Isaac: Afterbirth+ Lua modding API, which according to the developer of Atom-boilua uses Lua 5.3 . I want to read the user's local date and time, but unfortunately the API prevents use of the OS (and I/O) libraries, for security reasons. That means that os.date() is unavailable, and the API itself doesn't have any built-in functions to read the date and time on the local machine.
So since the API doesn't have any way of doing this, I was wondering if there might be a way of doing it with Lua alone, without using os.date().
Things the API supports:
- Reading/Writing to a single text file
- Support for lua files other than main.lua which can be accessed using require()
- JSON4Lua
Things the API does not support (as far as I know):
- Complex libraries, ie with files distributed throughout folders. You can include folders with the mod files, but I don't think the API lets you access them properly. (It's very possible that I'm wrong about this and just haven't figured it out yet.)
- Installing libraries period - you can pretty much only ship mods with whatever files can go in the same directory as the main mod file.
Is there any way of accessing date/time within these restrictions, or am I just out of luck?