Mail Archives: djgpp/2004/03/16/13:01:39
Brian Inglis <Brian DOT Inglis AT systematicsw DOT invalid> wrote:
: Can anyone tell me if the final C99 Standard specifies strftime()
: defaults for the C locale different from strftime() in the POSIX
: locale from the POSIX 2003 standard (which now has a back reference to
: the C Standard)?
They are identical, see below.
: My copy of the official C99 Standard (and e-receipt) got blown away by
: a disk crash shortly after downloading, and I'm too superstitious and
: cheap to pay and download again, so I'm going from the final committee
: distribution C99 FDIS 1999-04 which gives the following as the
: strftime() C locale defaults:
: %a the first three characters of %A.
: %A one of "Sunday", "Monday", ... , "Saturday".
: %b the first three characters of %B.
: %B one of "January", "February", ... , "December".
: %c equivalent to "%A %B %d %T %Y".
Mine says "%a %b %e %T %Y".
: %p one of "am" or "pm".
"AM" or "PM"
: %r equivalent to "%I:%M:%S %p".
: %x equivalent to "%A %B %d %Y".
"%m/%d/%y"
: %X equivalent to %T.
: %Z implementation-defined.
: The POSIX 2003 strftime() defaults are:
: http://www.opengroup.org/onlinepubs/007904975/functions/strftime.html
: %a The first three characters of %A .
: %A One of Sunday, Monday, ..., Saturday.
: %b The first three characters of %B .
: %B One of January, February, ..., December.
: %c Equivalent to %a %b %e %T %Y.
: %p One of AM or PM.
: %r Equivalent to %I:%M:%S %p.
: %x Equivalent to %m/%d/%y.
: %X Equivalent to %T.
: %Z Implementation-defined.
I. e. the same as POSIX.
Right,
MartinS
- Raw text -