unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (SunOS-4.1.3)
Page:
Section:
Apropos / Subsearch:
optional field

LOCALDTCONV(3)             Library Functions Manual             LOCALDTCONV(3)



NAME
       localdtconv - get date and time formatting conventions

SYNOPSIS
       #include <&lt;locale.h>&gt;

       struct dtconv *localdtconv()

DESCRIPTION
       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:

       char *abbrev_month_names[12]
              The  abbreviated  names of the months; for example, the abbrevi-
              ated name for January is abbrev_month_names[0] and the  abbrevi-
              ated name for December is abbrev_month_names[11].

       char *month_names[12]
              The  full  names  of  the months; for example, the full name for
              January is month_names[0] and the  full  name  for  December  is
              month_names[11].

       char *abbrev_weekday_names[7]
              The abbreviated names of the weekdays; for example, the abbrevi-
              ated name for Sunday is abbrev_weekday_names[0] and the abbrevi-
              ated name for Saturday is abbrev_weekday_names[6].

       char *weekday_names[7]
              The  full  names of the weekdays; for example, the full name for
              Sunday is weekday_names[0] and the full  name  for  Saturday  is
              weekday_names[6].

       char *time_format
              The  standard format for times, using the format specifiers sup-
              ported by strftime() and strptime() (see ctime(3V)).

       char *sdate_format
              The standard short format for dates, using the format specifiers
              supported by ctime (3V).

       char *dtime_format
              The  standard  short  format for dates and times together, using
              the format specifiers supported by ctime(3V).

       char *am_string
              The string representing AM.

       char *pm_string
              The string representing PM.

       char *ldate_format
              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,
                                       November, December

              abbrev_weekday_names     Sun, Mon, Tue, Wed, Thu, Fri, Sat

              weekday_names            Sunday,  Monday,  Tuesday,   Wednesday,
                                       Thursday, Friday, Saturday

              time_format              %H:%M:%S

              sdate_format             %m/%d/%y

              dtime_format             %a %b %e %T %Z %Y

              am_string                AM

              pm_string                PM

              ldate_format             %A, %B %e, %Y

FILES
       /usr/share/lib/locale/LC_TIME
                           standard  locale information directory for category
                           LC_TIME
SEE ALSO
       ctime(3V), setlocale(3V)



                                 15 June 1988                   LOCALDTCONV(3)