There's not a built-in function, but the Windows OS has a function that you can FUNCDEF:OPTIONS "C_CALL"
systemtime = "32u, 32u, 32u, 32u, 32u, 32u, 32u, 32u"
FUNCDEF("SetSystemTime", "32, struct SYSTEMTIME", "kernel32")
FUNCDEF("GetSystemTime", ", struct SYSTEMTIME stor", "kernel32")
getsystemtime(systemtime)
systemtime.5 = 0
systemtime.6 = 0
setsystemtime(systemtime)
|