TIME program instruction TIME program instruction Syntax TIME time_string Function Set the date and time. Parameter time_string String expression whose value specifies the date and time to be set. The value of the string must have one of these formats (see below): dd-mmm-yy hh:mm:ss dd-mmm-yyyy hh:mm:ss dd-mmm-yy hh:mm dd-mmm-yyyy hh:mm Details The system clock is set equal to the value of the string expression. The system clock is maintained automatically and should be changed only when its setting is incorrect (e.g., the controller is moved to a different time zone). The system clock is used in the following situations:
l The date and time are displayed when the eV+ system is booted from disk. l Whenever a new disk file is created, the date and time are recorded with the file name. (The FDIRECTORY command displays the dates and times for files.) l The date and time are appended to the message indicating that an application program has terminated execution. l The date and time are displayed by the TIME monitor command. l The date and time are available to an application program by use of the $TIME() and $TIME4() string functions. The individual elements of the date and time specification are defined as follows:
eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 527 Element Description dd The day of the month (1 to 31) mmm The month, specified as a 3-letter abbreviation (JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, or DEC)