


LOCALDTCONV(3)         C LIBRARY FUNCTIONS         LOCALDTCONV(3)



NAME
     localdtconv - get date and time formatting conventions

SYNOPSIS
     #include <locale.h>

     struct dtconv *localdtconv()

DESCRIPTION
     localdtconv() returns a  pointer  to  a  structure  of  type
     struct  dtconv containing values appropriate for the format-
     ting 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
          abbreviated  name  for January is abbrev_month_names[0]
          and   the   abbreviated   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
          abbreviated  name for Sunday is abbrev_weekday_names[0]
          and   the   abbreviated   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 specif-
          iers   supported  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



Sun Release 4.1     Last change: 15 June 1988                   1






LOCALDTCONV(3)         C LIBRARY FUNCTIONS         LOCALDTCONV(3)



          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)











Sun Release 4.1     Last change: 15 June 1988                   2



