time

Started by duanne_boy, Thu 14/03/2013 21:33:18

Previous topic - Next topic

duanne_boy

is the away i can display current time and date on the screen?

Crimson Wizard

Have you read the manual?

Check DateTime.Now.
Example from the manual:
Code: ags

 DateTime *dt = DateTime.Now;
 Display("The date is: %02d/%02d/%04d", dt.DayOfMonth, dt.Month, dt.Year);
 Display("The time is: %02d:%02d:%02d", dt.Hour, dt.Minute, dt.Second);

Khris

The scripting part of the manual has a section titled "DateTime functions and properties".
You can use those and String.Format() to put text on a GUI's label in repeatedly_execute.

SMF spam blocked by CleanTalk