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: dewar at gnat dot com (Robert Dewar)
- To: dewar at gnat dot com, schwab at suse dot de
- Cc: 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
- Date: Wed, 13 Mar 2002 21:15:03 -0500 (EST)
- Subject: Re: warning: `%y' yields only last 2 digits of year
<<Why? You can do your calculation to convert a 2-digit year to a 4-digit
year and then just use %Y. Do I miss anything?
>>
Yes, so what, why is this preferable coding in this case? Actually I would
prefer to leave the 19%y and 20%y in the code as flags for easy detection
in the year 2079 :-)