I'm searching for a way to load current time into a variable in my program.
And I have no ideas how to do this
Can anyone help me?
Thanks in advance.
A little messy, but this worked for me.
Develop games in your browser. Powerful, performant & highly capable.
DUTOIT Another CC post, but they didn't specify so it's good to have it in both methods
As for CC, use the Date object and you can do stuff like:
Date.GetHour & ":" & Date.GetMinutes & ":" & Date.GetSeconds
That's 24hour, so if you want Date.GetHour in 12 hour format then store to variable and add a check:
If HourVariable > 12 then HourVariable = HourVariable - 12
Jayjay - lol, I suck at this telling the diff. I must make a effort to check which section of forum - lol.
Thx for coming to rescue again
DUTOIT Heh anytime