Communicator 3000 MPE/iX Release 6.0 (Platform Software Release C.60.00) (30216-90269)
132 Chapter 9
Year 2000 Enhancements
New Date Intrinsics for MPE/iX
Parameters
datecode is a 32-bit signed integer by value.
This value should be one of the date type codes listed in
the table, “Supported Date Formats.”
firstdate is the first input date. The interpretation depends upon
the value of datecode. See the table, “Supported Date
Formats,” for the supported datecodes and their
layouts.
seconddate is the second input date. The interpretation depends
upon the value of datecode. See the table, “Supported
Date Formats,” for the supported datecodes and their
layouts.
diffindays is the number of days difference between the two dates,
computed as: seconddateminusfirstdate. Thus, if
seconddate is earlier than firstdate, diffindays will be
negative.
status is the HPE_STATUS parameter through which the error
codes are returned. A value of 0 indicates no error 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 years before computing the
difference. (See HPDATECONVERT documentation for
more information on cutoff parameter.)
HPDATEOFFSET
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
This value should be one of the date type codes listed in
the table, “Supported Date Formats.”
inputdate is the input date. The interpretation depends upon the
value of datecode. See the table, “Supported Date
Formats,” for the supported datecodes and their
layouts.
offset is a 32-bit signed integer by value.