*Time Data Type

Time constants or variables used in comparisons or assignments do not have to be in the same format or use the same separators. Also, times used for I/O operations such as input fields, output fields or key fields are also converted (if required) to the necessary format for the operation.

Time fields have a predetermined size and format.

The default format for time variables is *ISO . Leading and trailing zeros are required for all time data.

See the following topics for the *Time data type formats and *LOVAL, *HIVAL and default values.

Time Formats

Default Values for all Date Formats

Examples For examples on how to code time fields, see the examples in the following topics:

Date Operations<p /> Moving Date and Time<p /> ADDDUR<p /> EXTRACT<p /> MOVE<p /> SUBDUR<p /> TESTTIME

See Also

Date and Time

Data Types