question

Marc R5 avatar image
0 Likes"
Marc R5 asked Iago MF answered

system datetime

Hello,

How I can get the datetime of my system? not flexsim's simulation datetime but the current one. I need to write simulation data to a db, and I need a column showing when the simulation was done.

How can it be done?

FlexSim 22.1.0
time in system
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

·
Iago MF avatar image
1 Like"
Iago MF answered Jason Lightfoot edited

Hi,

Use the function realtime(10).

You can change the format with the argument. Here you have the documentation:

https://docs.flexsim.com/en/22.1/Reference/CodingInFlexSim/CommandReference/Commands.html#realtime

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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