Getting system time?

For questions about using Classic.

Post » Mon Jun 23, 2014 12:28 pm

Hello guys,
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.
B
2
Posts: 8
Reputation: 166

Post » Mon Jun 23, 2014 12:47 pm

A little messy, but this worked for me.
You do not have the required permissions to view the files attached to this post.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,718

Post » Tue Jun 24, 2014 1:39 am

@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
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
120
S
41
G
17
Posts: 2,215
Reputation: 19,667

Post » Tue Jun 24, 2014 6:30 am

@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 ;)
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,718

Post » Thu Jun 26, 2014 12:05 am

@DUTOIT Heh anytime :)
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
120
S
41
G
17
Posts: 2,215
Reputation: 19,667


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests