This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 :-)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]