MPE/iX Intrinsics Reference Manual (32650-90875)

Chapter 7 331
Command Definitions (HP32208-HPLOACNMPROC)
HPDATECONVERT
HPDATECONVERT
NM callable only.
Converts the dates from one supported format to another.
Syntax
I32V * I32V * I32V I32V
HPDATECONVERT
(inputcode,inputdate,outputcode,outputdate,status,cutoff)
Parameters
inputcode
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
varies for type by reference.
The interpretation depends upon the value of inputcode. See the
table,“Supported Date Formats," for the supported date codes
and their layouts.
outputcode
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."
outputdate
returns the date as per the format chosen by the outputcode
parameter
See the table “Supported Date Formats” for the supported datecodes and
their layouts.
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 the input parameter when the input
date hastwo-digit year. This is a required parameter for dates
with two-digit years. In all other cases, this parameter is
ignored.
If the cutoff parameter is given as -1, the value of the CI
environment variable HPSPLITYEAR is used as the cutoff year.
This parameter's value should be in the range 0..100. If the
value of the parameter is 50, two digit years in the range
0..49 will translate to 2000..2049 and those in the range
50..99 will be translated to 1950..1999. If you specify the
cutoff year as 70, the mapping will be 0..69 as 2000..2069 and
70..99 as 1970..1999.