How to display date and time in game editor? :)
Posted: Thu Mar 22, 2012 7:20 am
Hello. Does anyone knows how to display date and time in game editor based on system clock of your computer? Thank you .. )
Game Editor discussion board
http://game-editor.com/forum/
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