Im not a big fan of hacks to do something as simple as getting "date and time", so just do it properly: add the function to libcod if it doesn't exist yet
But a quick skip over vorons code shows this tho:
PHP Code:
{"getsystemtime", gsc_utils_getsystemtime, 0},
{"getserverstarttime", gsc_utils_getserverstarttime, 0},
{"getlocaltime", gsc_utils_getlocaltime, 0},
https://github.com/voron00/libcod/bl...r/gsc.cpp#L212
And since code is documentation, just look what it does:
https://github.com/voron00/libcod/bl...utils.cpp#L321