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

SECS

Example

SECS returns a FLOAT BINARY(53) value which is the number of seconds (based on Lilian format) corresponding to the date d.

Read syntax diagramSkip visual syntax diagram>>-SECS--+--------------------------+--------------------------><
         '-(-+------------------+-)-'
             '-d--+-----------+-'
                  '-,p-+----+-'
                       '-,w-'
 
d
A string expression representing a date. If present, d specifies the input date as a character string representing the date/time specified in the pattern p. If d is missing, it is assumed to be DATETIME().

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

p
One of the supported date/time patterns. If p is omitted, it is assumed to be the default date/time pattern 'YYYYMMDDHHMISS999'.

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

w
Specifies an expression (such as 1950) that can be converted to an integer. If negative, it specifies an offset to be subtracted from the value of the year when the code runs. If omitted, w defaults to the value specified in the WINDOW compile-time option.

The allowed patterns are listed in Table 50. For an explanation of Lilian format, see Date/time built-in functions.


Terms of use | Feedback

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