warning: `%y' yields only last 2 digits of year

Florian Weimer fw@deneb.enyo.de
Wed Mar 13 11:46:00 GMT 2002


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



More information about the Gcc mailing list