This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: warning: `%y' yields only last 2 digits of year
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: dewar at gnat dot com (Robert Dewar)
- Cc: matzmich at cs dot tu-berlin dot de, clock at atrey dot karlin dot mff dot cuni dot cz, fw at deneb dot enyo dot de, gcc at gcc dot gnu dot org, schwab at suse dot de
- Date: 14 Mar 2002 23:46:40 -0300
- Subject: Re: warning: `%y' yields only last 2 digits of year
- Organization: GCC Team, Red Hat
- References: <20020314020553.CB79BF28BD@nile.gnat.com>
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