MPE/iX Intrinsics Reference Manual (32650-90875)
518 Chapter9
Command Definitions (MAIL-PUTJCW)
NLCONVCUSTDATE
NLCONVCUSTDATE
NM and CM callable.
Converts the custom date format from a character string to a numeric value; checks the
input string by using the formatting template returned by item 2 of the NLINFO intrinsic,
then converts the date to the general date format as returned by the CALENDAR intrinsic.
Syntax
U16 CA I16V
date
:=NLCONVCUSTDATE(
buffer,bufferlength,
I16V U16A
langnum,error
);
Functional Return
date
16-bit unsigned integer (assigned functional return)
Returns the date in the following format:
Bits Value/Meaning
7:9 Day of year
0:7 Years since 1900
Parameters
buffer
character array(required)
Passes the formatted date to be converted into custom date format.
Leading and trailing blanks are ignored.
bufferlength
16-bit signed integer by value (required)
Contains the length of
buffer
(in bytes).
langnum
16-bit signed integer by value (required)
Contains the language ID number, specifying the custom date format for
buffer
.
error
16-bit unsigned integer array (required)
Returns two elements: the first element is the error number; the second
element is reserved and always returns 0. The possible error number
values are:
Value Meaning
0
Successful
1 *NLS not installed
2 *Specified language not configured