c-common.c; strftime.c; question

Paul Eggert eggert at twinsun.com
Fri Aug 23 06:01:04 UTC 1996


   Date: Thu, 22 Aug 1996 20:39:31 -0700
   From: Alan.Perry at Eng.Sun.COM (Alan Perry)

   The C/POSIX locale value for d_fmt (the thing associated with %x) is
   "%m/%d/%y".  This can be found on p. 75.

Most likely this was taken from Posix.2 Table 2-11 (page 64),
which requires that %x be "%m/%d/%y" in the Posix locale.

The same table also requires that %c must be "%a %b %e %H:%M:%S %Y" in
the Posix locale, so tz's strftime.c should probably be changed accordingly
(currently it's "%D %X").

Not that many programs actually _use_ %c or %x....



More information about the tz mailing list