question

Enrique Elizaga avatar image
0 Likes"
Enrique Elizaga asked tannerp answered

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

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

FlexSim 20.1.1
flexsim 20.1.1timedate
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

tannerp avatar image
2 Likes"
tannerp answered

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.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.