MPE/iX Intrinsics Reference Manual (32650-90905)
Chapter 7 339
Command Definitions (HP32208-HPLOACNMPROC)
HPDATEVALIDATE
HPDATEVALIDATE
NM callable only.
This intrinsic checks the validity of the given date with respect to the
supported formats given in the table, “Supported Date Formats.”.
Syntax
I32 I32V * I32V
result
:= HPDATEVALIDATE
(datecode, inputdate, 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.
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.)
result
is a 32 bit signed integer (assigned functional return). This value
will be 0 if the
inputdate
conforms to the date format represented by
datecode
. If is is not so, its value will be positive. If an error has occurred
in evaluating the conformance, its value will be negative. This return
value ranges from -999 to 1.
Operation Notes
Related Information
Intrinsics HPCALENDAR, HPDATECONVERT, HPDATEFORMAT, HPDATEOFFSET,
HPDATEVALIDATE, HPFMTCALENDAR