NLCONVCUSTDA(3X)
NAME
nlconvcustda − convert a date string to the MPE packed date format
SYNOPSIS
unsigned short nlconvcustdate(instr, leninstr, langid, err)
char *instr;
short leninstr, langid;
unsigned short err[2];
DESCRIPTION
Nlconvcustda converts instr to a packed date format. This routine is the inverse of nlfmtcustdate(3X).
The arguments to nlconvcustda are used as follows:
instr A character buffer containing the date to be converted.
leninstr A positive integer specifying the length of the string (in bytes).
langid A short containing the language ID number.
err The first element of this array contains the error number. The second element is always zero. If the call is successful, both elements contain zero.
Error # Meaning
2 Specified language is not configured.
3 Invalid date format.
4 Invalid string length.
RETURN VALUE
The routine returns the date as an unsigned integer in the format:
| Bits | 0 | 6 | 7 | 15 |
| _ | _ | _ | _ | |
| Year of Century | Day of Year | |||
| _ | _ | _ | _ | |
WARNINGS
This routine is provided for compatibility with MPE, another HP operating system. See portnls(5) for more information on the use of this routine. Use the Native Language Support routines for C programmers described on hpnls(5) for HP-UX NLS support.
AUTHOR
Nlconvcustda was developed by HP.
SEE ALSO
calendar(3X), nlfmtcustdate(3X), portnls(5).
EXTERNAL INFLUENCES
International Code Set Support
Single- and multi-byte character code sets are supported.
Hewlett-Packard Company — HP-UX Release 7.0: Sept 1989