How do I get and put the time of day into a label

How do I get and put the time of day into a label

tee_hiett
Not applicable
131 Views
3 Replies
Message 1 of 4

How do I get and put the time of day into a label

tee_hiett
Not applicable

[ FlexSim 21.2.4 ]

In the file that I added to FlexSim files shared site, Scenario 2-Experiments 0516, I would like to add the current model time to a label on the patient. later on I would like to use this time value in comparison with other time values, such as process start time and scheduled arrival time. But first I need help with getting the values into labels.


Thanks

0 Likes
Accepted solutions (1)
132 Views
3 Replies
Replies (3)
Message 2 of 4

Jeanette_Fullmer
Community Manager
Community Manager
Accepted solution

Hello @Tee Hiett,

You can access the Model time to get it in different formats. The simplest of these is

Model.time()
0 Likes
Message 3 of 4

jason_lightfootVL7B4
Autodesk
Autodesk

For those finding this post from the title, the number of time units since midnight is:

days(Math.frac(Model.dateTime.excelTime))
0 Likes
Message 4 of 4

Jeanette_Fullmer
Community Manager
Community Manager

Hi @Tee Hiett, was Jeanette F's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes