Internal clock expression?

For questions about using Classic.

Post » Mon Jun 28, 2010 2:26 am

i have a question, is there a expression to return the PC internal clock value?
B
10
G
2
Posts: 33
Reputation: 1,091

Post » Mon Jun 28, 2010 3:03 am

Hi.

The built-in Date object will return the system time and date, in pieces. The expressions for the time, if you don't rename the object to something other than 'Date', are Date.GetHour, Date.GetMinutes, and Date.GetSeconds. It also can return the date as a string.

If you are willing to use python, you can import the time module and use the time.time() function to get system time. That module also has a number of other functions for working with times.
B
3
S
2
G
2
Posts: 187
Reputation: 1,449

Post » Mon Jun 28, 2010 3:10 am

If you mean the current time and date, then the date object is what you are looking for.

This thread covers it: viewtopic.php?f=3&t=6238
And here is a cap: http://www.mediafire.com/file/mkdnhwwzzym/watch.cap

Other than that I think you can't access the internal clock.

EDIT: Sry, a second too late, double posting -.-
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Mon Jun 28, 2010 3:34 am

thanks you very much, i had forget the date object XD
B
10
G
2
Posts: 33
Reputation: 1,091


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests