Start of change

SECONDS-PAST-MIDNIGHT

The SECONDS-PAST-MIDNIGHT function returns a value in standard numeric time form that represents the current local time of day provided by the system on which the function is evaluated.

The function type is numeric.

Format

Read syntax diagramSkip visual syntax diagram FUNCTION SECONDS-PAST-MIDNIGHT

The SECONDS-PAST-MIDNIGHT function has no parameters.

Returned values

The returned value is in standard numeric time form that represents the current local time of the day provided by the system on which the function is evaluated, expressed in seconds past midnight. The precision is indicated by the z/OS® operating environment and the precision of the user's data type.

Example

If the current time in the z/OS operating environment is 05:14:27.812479168304, the returned value would be as close to 18867.812479168304 as the z/OS operating environment is capable of providing.

End of change