"Robert Marz" <[EMAIL PROTECTED]> writes:

> i found a bug in the date command.
> date returns wrong year in the first calendar week if used with "1 weeks
> ago"

This has nothing to do with "1 weeks ago" or any other relative date spec.

> [EMAIL PROTECTED] date-bug]$ date +%Y-KW%V -d " 1 weeks ago"
> # OUCH, wrong year!
> 2005-KW53

This is completely correct.  Read the documentation of the %V spec and use
%G instead of %Y.

Andreas.

-- 
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstra�e 5, 90409 N�rnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to