NET/MASTER Network Control Language (NCL) Reference Manual

TIME
Built-in Functions
106126 Tandem Computers Incorporated 4–85
Considerations
As for the DATE built-in function, all TIME references within a single expression
must yield consistent results. This requires that a single timestamp be used during
the lifetime of an expression. The same timestamp need not be maintained for a
lower-level user function, but must be reinstated when the user function call
returns.
See also DATE, which provides the current date in one of several specified
formats.
See also the related &SYS.TIME system variable, in Section 5, “System Variables,”
which contains the system time in the format hh:mm:ss.
Examples
An example of each timestamp is shown next. The SAY core statement, placed in front
of each TIME built-in function, gives the returned value as shown in the procedure
following this table:
Expression Example of returned value
TIME(A) 32400.435693
TIME(C) 9.00am
TIME(H) 9
TIME(L) 9:18:32.435693
TIME(M) 540
TIME(N) 9:18:32
TIME(S) 32400
SAY_IT: PROCEDURE
&A = TIME()
&B = TIME(S)
SAY &A IS THE TIME OR &B SECONDS SINCE MIDNIGHT
END SAY_IT