question

Tee Hiett avatar image
0 Likes"
Tee Hiett asked Jeanette F commented

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

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

FlexSim 21.2.4
datetime
· 1
5 |100000

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

Jeanette F avatar image Jeanette F ♦♦ commented ·

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 0 ·

1 Answer

·
Jeanette F avatar image
0 Likes"
Jeanette F answered Jason Lightfoot edited

Hello @Tee Hiett,

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

Model.time()
· 1
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

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

days(Math.frac(Model.dateTime.excelTime))
0 Likes 0 ·

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.