mirror of
https://github.com/sam-astro/Z-Sharp.git
synced 2025-12-10 15:52:12 +00:00
Update builtin.h
This commit is contained in:
parent
c40d902cef
commit
dc580c2257
@ -164,8 +164,10 @@ int InterpreterLog(const string& logText)
|
||||
#if UNIX
|
||||
time_t currentTime;
|
||||
struct tm* localTime;
|
||||
time(¤tTime);
|
||||
localTime = localtime(&utc);
|
||||
|
||||
time(¤tTime); // Get the current time
|
||||
localTime = localtime(¤tTime); // Convert the current time to the local time
|
||||
|
||||
Hour = localTime->tm_hour;
|
||||
Min = localTime->tm_min;
|
||||
Sec = localTime->tm_sec;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user