mirror of
https://github.com/sam-astro/Z-Sharp.git
synced 2025-12-11 16:22: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
|
#if UNIX
|
||||||
time_t currentTime;
|
time_t currentTime;
|
||||||
struct tm* localTime;
|
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;
|
Hour = localTime->tm_hour;
|
||||||
Min = localTime->tm_min;
|
Min = localTime->tm_min;
|
||||||
Sec = localTime->tm_sec;
|
Sec = localTime->tm_sec;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user