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


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


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