Date and Time

In This Section

Adding or Subtracting Dates

Documents the rules when adding or subtracting a duration in months to (or from) a date.

Calculating Durations between Dates

Documents the rules when calculating a duration by subtracting two dates, times, or timestamps.

*Date Data Type

Documents the *Date data type.

Date Formats

Documents the date formats in Encore RPG.

Date Operations

Documents the Encore RPG operation codes that allow you to extract portions of a date, time or timestamp field, perform date and time arithmetic; or test for valid date and time fields.

Default Values for all Date Formats

Documents the default values for all date formats in Encore RPG.

Default Values for all Time Formats

Documents the default values for all time formats in Encore RPG.

Duration Codes

Documents the valid duration codes and their short forms in Encore RPG.

Moving Data-Time Data

Documents the valid duration codes and their short forms in Encore RPG.

*Time Data Type

Documents the *Time data type in Encore RPG.

Time Formats

Documents using Time formats available in Encore RPG.

*TimeStamp Data Type

Documents the *Timestamp data type in Encore RPG.

Encore RPG Language Reference

Provides a reference of the Encore RPG language.