MPE/iX Quick Reference Guide (32650-90881)

Chapter 3 107
Intrinsics Descriptions
Descriptions of the Intrinsics Available in MPE/iX
Formats the general date format returned by the CALENDAR intrinsic into the custom date
format for a native language. A custom date is an abbreviated format such as 10/1/82 or
82.10.1. The formatting is done according to the template returned by
itemnum
= 2 of the
NLINFO intrinsic.
U16V CA I16V U16A
NLFMTCUSTDATE(
date,buffer,langnum,error
);
NLFMTDATE
NM and CM callable.
Formats the date and time according to language-dependent templates returned by
itemnum
s 1 and 3 of the NLINFO intrinsic.
U16V I32V CA I16V U16A
NLFMTDATE(
date,time,buffer,langnum,error
);
NLFMTLONGCAL
NM and CM callable.
Formats the supplied date according to the long calendar format. The formatting is done
according to the template returned by NLINFO
itemnum
=30.
LV BA IV LA
NLFMTLONGCAL(
date,string,langnum,error
)
NLFMTNUM
NM and CM callable.
Converts a string containing an ASCII number (can include NATIVE-3000 decimal
separator (.), thousands separator (,), and currency symbol/name ($)) to a language-specific
format using the decimal separator, thousands separator, and currency symbol/name
defined for the native language.
I16V CA I16V CA I16V U16A
NLFMTNUM(
langnum,instring,inlength,outstring,outlength,error
,
U16A U16V I16V O-V
numspec,fmtmask,decimals
)
NLGETLANG
NM and CM callable.
Returns a language ID number that characterizes the current user, data, or system.
Hewlett-Packard subsystems and application programs use NLGETLANG for automatic
configuration.
I16 I16V U16A
langnum
:=NLGETLANG(
langtype,error
);