MPE/iX Intrinsics Reference Manual (32650-90875)
336 Chapter7
Command Definitions (HP32208-HPLOACNMPROC)
HPDATEFORMAT
Thus, YYYY.MON.DAY, YY/MM/DD, DDMONYY, and DD-ZMM-YYYY are valid date
formts. For example, “31 jan 1997” when formatted through DD-ZMM-YYYY results in
“31-1-1997,” formatted through YYYY/MM/DAY results in “1997.JAN.FRI,” while
YYYYMMDD results in “19970131.”
NOTE
Mixing the NULL punctuation character with other punctuation characters
is not allowed. Thus, YYYY/MM/DD is a valid format, while YYYYMM/DD is
not.
Syntax
I32V * CA CA I32 I32
HPDATEDIFF(
datecode, inputdate, formatspec,fmtdate, fmtdatlen, status,
I32V
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.
formatspec
is a character array (required). This should be a NULL terminated
string as per the syntax explained above in the table, “Format
Specification Strings.”
DAY Day of the week in ASCII (uppercase) format (SUN, MON, . . . )
Table 7-10. Valid Characters for Punctuation
Character Definition
- Hyphen
/ Slash
. Dot
‘ ‘ Blank
, Comma
“ Null
Table 7-9. Format Specification Strings
String Definition