Time Convert Simulation to Local

The Time Convert Local to Simulation function will write the date to a specified variable (number). The format of the date will be in a local clock time number. This number is the number of days since 01-01-1900 (this is the standard way that the clock in Windows works). This means that 22nd August 2008 is represented by the value 39682.

Parameters

  • Simulation Time - Simulation clock time to be converted
  • Returned local datetime number - Global Data Item that receives the datetime number

Comments

In order to store a date in a date format this command should be used in conjunction with the “Format Local Time” command.

Example

Time Convert Simulation to Local    Simulation Time ,  gbl_date

This example will convert the current simulation time into a date and store this in the variable gbl_date.

See Also