The following shows how the year is not rolled back. # date Wed Jan 2 12:12:23 GMT 2008 # date --date '2 days ago' +'%G-%m-%d %k:%M:%S' 2008-12-31 12:12:53
However, # date --date '2 days ago' Mon Dec 31 12:15:02 GMT 2007 ...suggests it is the %G that is the problem. The problem is mentioned in the archives here: http://lists.gnu.org/archive/html/bug-coreutils/2003-12/msg00101.html ...but the post has no replies. _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils