http://game-editor.com/docs/script_reference.htm wrote:getTime: Get system date and time.
stTime getTime();
The stTime is a struct with follow members:
sec: Seconds after minute (0 - 59)
min: Minutes after hour (0 - 59)
hour: Hours since midnight (0 - 23)
mday: Day of month (1 - 31)
mon: Month (1 - 12; January = 1)
year: Year (current year)
wday: Day of week (0 - 6; Sunday = 0)
yday: Day of year (0 - 365)
sec_utc: Number of seconds elapsed since midnight (00:00:00), January 1, 1970 (coordinated universal time)
Script Editor Syntax:
stTime t = getTime();
textNumber = t.sec; //to show the seconds
Download the sample here
Users browsing this forum: No registered users and 1 guest