HPlogo MPE/iX Intrinsics Reference Manual > Chapter 7 Command Definitions (HP32208-HPLOACNMPROC)

HPDATEVALIDATE

MPE documents

Complete PDF
Table of Contents
Index

Edition 7 E0701
Edition 7 E0300 ♥
Edition 6 E0195

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);

Functional Return


result

is a 32 bit signed integer

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.

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.)

Operation Notes


Related Information


Intrinsics

HPCALENDAR, HPDATECONVERT, HPDATEFORMAT, HPDATEOFFSET, HPDATEVALIDATE, HPFMTCALENDAR




HPDATEOFFSET


HPDEBUG