question

Raashid Mohammed avatar image
0 Likes"
Raashid Mohammed asked Logan Gold commented

How to put arrival time in date and time format in source in Arrival schdeule

I have two questions

1. how to put arrival time in SOURCE arrival schedule in date and time format

for example something like this 8/2/2016 4:00:00 PM instead of seconds

2. how to change to simulation start date and time

currently my model runs with model start time

8:00:00 AM Thu 25 Aug 2016

how can change that before simulation run

please help

thanks

Raashid

Choose One
date
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

Logan Gold avatar image
4 Likes"
Logan Gold answered Logan Gold commented

1.) The ArrivalTime column of a Source's Arrival Schedule always needs a value that is a number. However, you can use the convert() command to convert a date/time format into model time. So you could have a Global Table with all the date/time information you want to convert to be used in a Source's Arrival Schedule. Then, use something like the Source's OnReset trigger to convert the values in the Global Table to be used in the Arrival Schedule. Using 8:00:00 AM Thu 25 Aug 2016 as a model's start time, this command will return 3600:

convert("9:00:00 AM Thu 25 Aug 2016", DATETIME_STR, MODEL_TIME);

2.) Go to Edit, then Model Settings. The Model Settings window has two fields for Model Start Time - the time and date. You can make changes in either field to change the Model Start Time.

· 4
5 |100000

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