bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

date bug report: %G gives incorrect year


From: matt smiglarski
Subject: date bug report: %G gives incorrect year
Date: Wed, 2 Jan 2008 12:18:02 +0000

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]