Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ nlconvcustd(3X) — HP-UX 9.05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

calendar(3X)

nlfmtcustdate(3X)

portnls(5)

nlconvcustdate(3X)

NAME

nlconvcustdate() − convert date string to MPE packed date format

SYNOPSIS

#include <portnls.h>

unsigned short nlconvcustdate(

const char *instr,
short int leninstr,
short int langid,
unsigned short int err[2]

);

DESCRIPTION

nlconvcustda() converts instr to a packed date format.  This routine is the inverse of nlfmtcustdate(3X).

Arguments to nlconvcustda() are 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 by 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 9.0: August 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026