Chapter 6. LOCALE technology
60
char *
nl_langinfo(
nl_item item
)
is an XPG5 function to get LOCALE related informations. You
can get the following informations using the following macros for item defined in
langinfo.h
header file:
names for days in week (
DAY_1
(Sunday),
DAY_2
,
DAY_3
,
DAY_4
,
DAY_5
,
DAY_6
, and
DAY_7
)
abbreviated names for days in week (
ABDAY_1
(Sun),
ABDAY_2
,
ABDAY_3
,
ABDAY_4
,
ABDAY_5
,
ABDAY_6
, and
ABDAY_7
)
names for months in year (
MON_1
(January),
MON_2
,
MON_3
,
MON_4
,
MON_5
,
MON_6
,
MON_7
,
MON_8
,
MON_9
,
MON_10
,
MON_11
, and
MON_12
)
abbreviated names for months in year (
ABMON_1
(January),
ABMON_2
,
ABMON_3
,
ABMON_4
,
ABMON_5
,
ABMON_6
,
ABMON_7
,
ABMON_8
,
ABMON_9
,
ABMON_10
,
ABMON_11
, and
ABMON_12
)
name for AM (
AM_STR
)
name for PM (
PM_STR
)
name of era (
ERA
)
format of date and time (
D_T_FMT
)
format of date and time (era based) (
ERA_D_T_FMT
)
format of date (
D_FMT
)
format of date (era based) (
ERA_D_FMT
)
format of time (24 hour format) (
T_FMT
)
format of time (am/pm format) (
T_FMT_AMPM
)
format of time (era based) (
ERA_T_FMT
)
radix (
RADIXCHAR
)
thousands separator (
THOUSEP
)
alternative characters for numerics (
ALT_DIGITS
)
affirmative word (
YESSTR
)
affirmative response (
YESEXPR
)
negative word (
NOSTR
)
negative response (
NOEXPR
)
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved