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: Florian Weimer <fw at deneb dot enyo dot de>
- To: dewar at gnat dot com (Robert Dewar)
- Cc: jakub at redhat dot com, clock at atrey dot karlin dot mff dot cuni dot cz, gcc at gcc dot gnu dot org, schwab at suse dot de
- Date: Wed, 13 Mar 2002 20:46:09 +0100
- Subject: Re: warning: `%y' yields only last 2 digits of year
- References: <20020313193043.89085F2EE0@nile.gnat.com>
dewar@gnat.com (Robert Dewar) writes:
> Why on earth would someone write 19%y instead of %Y? One might answer
> complete incompetence I suppose :-)
It's in the documentation. ;-)
http://docs.rinet.ru:8083/man/man1/date.html
| The command:
|
| date "+DATE: 19%y-%m-%d%nTIME: %H:%M:%S"
|
| will display:
|
| DATE: 1987-11-21
| TIME: 13:36:16