warning: `%y' yields only last 2 digits of year
Alexandre Oliva
aoliva@redhat.com
Thu Mar 14 18:47:00 GMT 2002
On Mar 13, 2002, dewar@gnat.com (Robert Dewar) wrote:
> How can a user *not* know that %y generates only the low two order digits
> of the year, I just don't see any scenario under which that is true, since
> the output is obvious. That's even *more* clear when someone writes 19%y,
> in this case it is 100% clear that the user knows what it does, and it is
> a bit amazing to me that you would claim otherwise.
Just consider for a moment that, after seeing the 19%y example in the
docs, the user might think that the sequence 19%y is handled
especially, and will actually print the full year. It's amazing how
people's imaginations sometimes fly :-)
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
More information about the Gcc
mailing list