DT_ADD

The DT_ADD function increments an array of IDLDT date/time variables by a constant amount. The result is an array of IDLDT date/time structures, incremented by the desired amount. Each value is added to the corresponding component, then the result is renormalized with JUL_TO_DT.

Calling Sequence

Result = DT_ADD( Dt_var )

Arguments

Dt_var

An array of IDLDT date/time structures.

Keywords

COMPRESS

Eliminate holidays (see !HOLIDAYS).

DAY

The offset in days.

HOUR

The offset in hours.

MINUTE

The offset in minutes.

SECOND

The offset in seconds.

YEAR

The offset in years.

Example

PRINT, DT_ADD( TODAY(), DAY=1, YEAR=3) ; Adds 1 to today's day and 3 to today's year.

See Also

IDLDT__DEFINE