[Top][All Lists]

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

bug in date utillity

From: Vladislav ZItikis
Subject: bug in date utillity
Date: Mon, 31 Jul 2006 17:19:26 +0400
User-agent: KMail/1.9.1

Good evening

I think, I find a bug in date calculations.
This is example for demonstration:

address@hidden date --version
date (GNU coreutils) 5.94
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by David MacKenzie.
address@hidden date
Mon Jul 31 17:12:57 MSD 2006

address@hidden date -d "1 month ago" +"%m"
address@hidden date -d "2 month ago" +"%m"

I think, date -d "1 month ago" +"%m" must return to me '06' but not '07'
Thank you

Vladislav Zitikis

reply via email to

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