Print this page
11586 NAME field in man pages should match what's installed
   1 STRFTIME(3C)             Standard C Library Functions             STRFTIME(3C)
   2 
   3 
   4 
   5 NAME
   6        strftime, strftime_l cftime, ascftime - convert date and time to string

   7 
   8 SYNOPSIS
   9        #include <time.h>
  10 
  11        size_t strftime(char *restrict s, size_t maxsize,
  12             const char *restrict format,
  13             const struct tm *restrict timeptr);
  14 
  15        size_t strftime_l(char *restrict s, size_t maxsize,
  16             const char *restrict format,
  17             const struct tm *restrict timeptr, locale_t loc);
  18 
  19        int cftime(char *s, char *format, const time_t *clock);
  20 
  21        int ascftime(char *s, const char *format,
  22             const struct tm *timeptr);
  23 
  24 
  25 DESCRIPTION
  26        The strftime(), strftime_l(), ascftime(), and cftime() functions place


 416 
 417        The conversion specifications for %g, %G, %Eg, %EG, and %Og were added
 418        in the Solaris 7 release.  This change was based on the public review
 419        draft of the ISO C9x standard at that time. The %g and %G
 420        specifications were adopted in the formal standard.  The other two were
 421        not, and should not be used in portable applications.
 422 
 423        The conversion specification for %u was changed in the Solaris 8
 424        release.  This change was based on the XPG4 specification.
 425 
 426        If using the %Z specifier and zoneinfo timezones and if the input date
 427        is outside the range 20:45:52 UTC, December  13, 1901 to 03:14:07 UTC,
 428        January 19, 2038, the timezone name may not be correct.
 429 
 430        The conversion specification for %+ was added in illumos.  It is not
 431        part of any standard, although it is available on a number of other
 432        platforms.  Its use is discouraged for conforming applications.
 433 
 434 
 435 
 436                                 March 30, 2019                    STRFTIME(3C)
   1 STRFTIME(3C)             Standard C Library Functions             STRFTIME(3C)
   2 
   3 
   4 
   5 NAME
   6        strftime, strftime_l, cftime, ascftime - convert date and time to
   7        string
   8 
   9 SYNOPSIS
  10        #include <time.h>
  11 
  12        size_t strftime(char *restrict s, size_t maxsize,
  13             const char *restrict format,
  14             const struct tm *restrict timeptr);
  15 
  16        size_t strftime_l(char *restrict s, size_t maxsize,
  17             const char *restrict format,
  18             const struct tm *restrict timeptr, locale_t loc);
  19 
  20        int cftime(char *s, char *format, const time_t *clock);
  21 
  22        int ascftime(char *s, const char *format,
  23             const struct tm *timeptr);
  24 
  25 
  26 DESCRIPTION
  27        The strftime(), strftime_l(), ascftime(), and cftime() functions place


 417 
 418        The conversion specifications for %g, %G, %Eg, %EG, and %Og were added
 419        in the Solaris 7 release.  This change was based on the public review
 420        draft of the ISO C9x standard at that time. The %g and %G
 421        specifications were adopted in the formal standard.  The other two were
 422        not, and should not be used in portable applications.
 423 
 424        The conversion specification for %u was changed in the Solaris 8
 425        release.  This change was based on the XPG4 specification.
 426 
 427        If using the %Z specifier and zoneinfo timezones and if the input date
 428        is outside the range 20:45:52 UTC, December  13, 1901 to 03:14:07 UTC,
 429        January 19, 2038, the timezone name may not be correct.
 430 
 431        The conversion specification for %+ was added in illumos.  It is not
 432        part of any standard, although it is available on a number of other
 433        platforms.  Its use is discouraged for conforming applications.
 434 
 435 
 436 
 437                                 August 20, 2019                   STRFTIME(3C)