MPE/iX Intrinsics Reference Manual (32650-90875)
338 Chapter7
Command Definitions (HP32208-HPLOACNMPROC)
HPDATEOFFSET
HPDATEOFFSET
NM callable only.
This intrinsic adds or subtracts a specified offset to or from the given
date.
Syntax
I32V * I32V * I32 I32V
HPDATEOFFSET
(datecode, inputdate,offset,outputdate,status,cutoff)
Parameters
datecode
is a 32 bit signed integer by value
The value should be one of the date type codes listed in the
table, “Supported Date Formats."
inputdate
is the input date. The interpretation depends on the value of
datecode
See the table,“Supported Date Formats," for the supported date
codes and their layouts.
offset
is a 32 bit signed integer by value. The interpretation depends on the
value of
datecode
outputdate
is the output date. The result of the date offset operation. The
interpretation depends upon the value of
datecode
. See the
table,“Supported Date Formats," for the supported date codes
and their layouts.
status
is the HPE_STATUS parameter through which the error codes are
returned. A value of 0 indicates no errors and no warnings.
cutoff
is a 32 bit signed integer by value (optional).
This is used in validating and converting the two-digit years
to four digit ones before computing the difference. (See
HPDATECONVERT documentation for more information.)
Operation Notes
Related Information
Intrinsics HPCALENDAR, HPDATECONVERT, HPDATEFORMAT, HPDATEOFFSET,
HPDATEVALIDATE, HPFMTCALENDAR