TIME Function

Purpose

Returns a character string that represents the time of day.

Syntax

TIME()

or

TIME

The second syntax form can be used only if the BUILTIN attribute was specified.

Description

The TIME function returns a character string of the form hhmmssttt that represents the time of day, where hh, mm, and ss are in the ranges 00 – 23, 00 – 59, and 00 – 59, respectively, and represent hours, minutes, and seconds, respectively. ttt represents thousandths of a second. If your system is not capable of supplying ttt, zeros are returned in these positions. (Releases of Open PL/I prior to release 5.0 returned only two fractional digits, that is, hundredths, instead of three. To retain that behavior, compile with the -pl1g option. (See your Open PL/I User's Guide.)

Examples

The value of TIME at 6 seconds after 11:15 P.M. is '231506000 '.

Restrictions

None.