langinfo.5 (2010 09)

l
langinfo(5) langinfo(5)
NAME
langinfo - language information constants
SYNOPSIS
#include <langinfo.h>
DESCRIPTION
This header file contains the constants used to identify items of
langinfo data (see nl_langinfo (3C)).
The mode of items is given in
<nl_types.h>
. The following constants are defined. (Category indi-
cates in which
setlocale() category each item is defined).
Constant Category Description
Codeset name, such as iso88591 and eucJP.CODESET LC_CTYPE
String for formatting the
%c (date and time) directive of
date, getdate(), and strftime().
D_T_FMT LC_TIME
String for formatting the %x (date) directive of
date, get-
date(), and strftime().
D_FMT LC_TIME
String for formatting the %X (time) directive of
date, get-
date(), and strftime().
T_FMT LC_TIME
Time representation in the 12 hour clock format with
AM_STR and PM_STR.
T_FMT_AMPM LC_TIME
Ante meridiem string used with 12 hour time formats (AM
in English).
AM_STR LC_TIME
Post meridiem string used with 12 hour time formats (PM in
English).
PM_STR LC_TIME
Name of the first day of the week (Sunday in English).DAY_1 LC_TIME
... ... ...
Name of the seventh day of the week.DAY_7 LC_TIME
Abbreviated name of the first day of the week (
Sun in
English).
ABDAY_1 LC_TIME
... ... ...
Abbreviated name of the seventh day of the week.ABDAY_7 LC_TIME
Name of the first month in the Gregorian year.MON_1 LC_TIME
... ... ...
Name of the twelfth month.MON_12 LC_TIME
Abbreviated name of the first month.ABMON_1 LC_TIME
... ... ...
Abbreviated name of the twelfth month.ABMON_12 LC_TIME
The era description segments, which describe how years are
counted and displayed for each era in a locale. Each era
description segment has the format:
ERA LC_TIME
direction
:offset:start_date :
end_date :era_name :era_format
according to the descriptions below. There will be as many
era description segments as are necessary to describe the
different eras. Era description segments are separated by
semicolons.
Note that the start of an era might not be the earliest point
in the era; it might be the latest. For example, the Chris-
tian era BC starts on the day before January 1, AD 1, and
increases with earlier time.
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (4 pages)