How do I get the computer date and time, not the simulation's?

How do I get the computer date and time, not the simulation's?

enrique.elizaga
Advocate Advocate
14 Views
1 Reply
Message 1 of 2

How do I get the computer date and time, not the simulation's?

enrique.elizaga
Advocate
Advocate

[ FlexSim 20.1.1 ]

Is there a way to get the computer user's date and time?

0 Likes
Accepted solutions (1)
15 Views
1 Reply
Reply (1)
Message 2 of 2

tanner_p
Not applicable
Accepted solution

You can use this function:

realtime([num timecode]);

Where "timecode" is one of the following:

0 = the number of seconds and milliseconds since midnight, Jan 1, 1970
1 = the number of seconds since midnight, Jan 1, 1970
2 = the number of milliseconds since the last second change
10 = a time string with format hh:mm:ss
11 = a date string with format mm/dd/yy
12 = a date/time string with format Mon Nov 15 15:49:12 2004

Let me know if you have questions.