|
|
NM callable only.
This intrinsic adds or subtracts a specified offset to or
from the given date.
Syntax
I32V * I32V *
HPDATEOFFSET (datecode, inputdate, offset, outputdate,
I32 I32V
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 a 32 bit signed integer by reference
An 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
|