X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: <4057409a$0$96977$cc7c7865@news.luth.se> From: Martin Str|mberg Subject: Re: C99 strftime() C locale defaults Newsgroups: comp.os.msdos.djgpp References: User-Agent: tin/1.4.6-20020816 ("Aerials") (UNIX) (NetBSD/1.6Q (alpha)) Date: 16 Mar 2004 17:59:54 GMT Lines: 54 NNTP-Posting-Host: speedy.ludd.ltu.se X-Trace: 1079459994 news.luth.se 96977 130.240.16.13 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Brian Inglis 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