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

HPDATEOFFSET

MPE documents

Complete PDF
Table of Contents
Index

Edition 7 E0701 ♥
Edition 7 E0300
Edition 6 E0195

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" found with the HPDATECONVERT intrinsic.

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

Related Information


IntrinsicsHPCALENDAR, HPDATECONVERT, HPDATEDIFF, HPDATEFORMAT, HPDATEVALIDATE, HPFMTCALENDAR
Manuals




HPDATEFORMAT


HPDATEVALIDATE