LOCALDTCONV(3) Library Functions Manual LOCALDTCONV(3)
localdtconv - get date and time formatting conventions
struct dtconv *localdtconv()
localdtconv() returns a pointer to a structure of type struct dtconv
containing values appropriate for the formatting of dates and times
according to the rules of the current locale.
The members include the following:
The abbreviated names of the months; for example, the abbrevi-
ated name for January is abbrev_month_names and the abbrevi-
ated name for December is abbrev_month_names.
The full names of the months; for example, the full name for
January is month_names and the full name for December is
The abbreviated names of the weekdays; for example, the abbrevi-
ated name for Sunday is abbrev_weekday_names and the abbrevi-
ated name for Saturday is abbrev_weekday_names.
The full names of the weekdays; for example, the full name for
Sunday is weekday_names and the full name for Saturday is
The standard format for times, using the format specifiers sup-
ported by strftime() and strptime() (see ctime(3V)).
The standard short format for dates, using the format specifiers
supported by ctime (3V).
The standard short format for dates and times together, using
the format specifiers supported by ctime(3V).
The string representing AM.
The string representing PM.
The standard long format for dates, using the format specifiers
supported by ctime(3V).
The values for the members in the C locale are:
abbrev_month_names Jan, Feb, Mar, Apr, May, Jun, Jul, Aug,
Sep, Oct, Nov, Dec
month_names January, February, March, April, May,
June, July, August, September, October,
abbrev_weekday_names Sun, Mon, Tue, Wed, Thu, Fri, Sat
weekday_names Sunday, Monday, Tuesday, Wednesday,
Thursday, Friday, Saturday
dtime_format %a %b %e %T %Z %Y
ldate_format %A, %B %e, %Y
standard locale information directory for category
15 June 1988 LOCALDTCONV(3)