Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

DATETIME

DATETIME returns a character string timestamp of today’s date in either the default or a user-specified format.

Read syntax diagramSkip visual syntax diagram>>-DATETIME--+-----------+-------------------------------------><
             '-(-+---+-)-'
                 '-y-'
 
y
Expression

If present, it specifies the date/time pattern in which the date is returned. If y is missing, it is assumed to be the default date/time pattern 'YYYYMMDDHHMISS999'.

Refer to Table 50 for the allowed patterns.

y must have computational type and should have character type. If not, it is converted to character.

See DAYS for an example of using DATETIME.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)