Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ nlfmtcustda(3X) — HP-UX 9.05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

calendar(3X)

nlconvcustdate(3X)

portnls(5)

nlfmtcustdate(3X)

NAME

nlfmtcustdate() − format an MPE packed date using a custom date

SYNOPSIS

#include <portnls.h>

void nlfmtcustdate(

unsigned short int date,
char *outstr,
short int langid,
unsigned short int err[2]

);

DESCRIPTION

nlfmtcustdate() converts the packed date format to the language-dependent custom date as specified in the language definition file.  A custom date has an abbreviated format such as 10/21/87 or 87.10.21. 

Arguments to nlfmtcustdate() are used as follows:

date An unsigned short containing the date in the packed date format:

Bits 0 6 7 15
_ _ _ _
Year of Century Day of Year
_ _ _ _

outstr A 13-byte buffer in which the formatted date is returned. 

langid A short integer of the language whose custom date specification is to be used for the format. 

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. 

WARNINGS

This routine is provided for compatibility with MPE, a proprietary 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

nlfmtcustdate() was developed by HP. 

SEE ALSO

calendar(3X), nlconvcustdate(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