GNU bug report logs - #9718
bugs in `date` command?

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Severity: wishlist; Reported by: Bryan Lee <leebc11@HIDDEN>; Keywords: notabug; dated Mon, 10 Oct 2011 16:37:02 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.

Message received at 9718 <at> debbugs.gnu.org:


Received: (at 9718) by debbugs.gnu.org; 17 Oct 2011 06:02:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 17 02:02:21 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RFgHE-0003Ba-4Y
	for submit <at> debbugs.gnu.org; Mon, 17 Oct 2011 02:02:21 -0400
Received: from senmx11-mx.siemens-enterprise.com ([62.134.46.9])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <bernhard.voelker@HIDDEN>)
	id 1RFgHB-0003BM-6J
	for 9718 <at> debbugs.gnu.org; Mon, 17 Oct 2011 02:02:18 -0400
Received: from MCHP063A.global-ad.net (unknown [172.29.37.61])
	by senmx11-mx.siemens-enterprise.com (Server) with ESMTP id
	6B98B1EB843F; Mon, 17 Oct 2011 08:01:21 +0200 (CEST)
Received: from MCHP058A.global-ad.net ([172.29.37.55]) by
	MCHP063A.global-ad.net ([172.29.37.61]) with mapi;
	Mon, 17 Oct 2011 08:01:21 +0200
From: "Voelker, Bernhard" <bernhard.voelker@HIDDEN>
To: Jim Meyering <jim@HIDDEN>, Eric Blake <eblake@HIDDEN>
Date: Mon, 17 Oct 2011 08:01:18 +0200
Subject: RE: bug#9718: bugs in `date` command?
Thread-Topic: bug#9718: bugs in `date` command?
Thread-Index: AcyKqbLivFzCCw+RRx+DCwj5VFhm6QB59QEg
Message-ID: <7856072A9D04C24B82DFE2B1112FE38A0D83C5375E@HIDDEN>
References: <20111010163521.GP4958@HIDDEN>
	<7856072A9D04C24B82DFE2B1112FE38A0D83B8E962@HIDDEN>
	<4E944BCC.9030102@HIDDEN> <87r52fl5nk.fsf@HIDDEN>
In-Reply-To: <87r52fl5nk.fsf@HIDDEN>
Accept-Language: de-DE, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: de-DE, en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Spam-Score: -3.3 (---)
X-Debbugs-Envelope-To: 9718
Cc: "9718 <at> debbugs.gnu.org" <9718 <at> debbugs.gnu.org>, Bryan Lee <leebc11@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.2 (---)

Jim Meyering wrote:

> Eric Blake wrote:
> ...
> > As currently coded in the grammar, this is correct.  But if someone
> > were willing to put forth the effort to update parsedate.y, as well as
> > enhance the testsuite to cover things, it might be possible to improve
> > the grammar to accept both common meanings of "second" depending on
> > the context where it appears compared to the rest of the date.
>=20
> Just in case, I've marked this as "wishlist".
> If you're interested, please add it to TODO.
> If not, please close this.

I don't know if it violates some standards, but I'd vote for
abbreviations like "1st", "2nd", "3rd", "4th", etc. which do not
interfere with the double meaning of "second".
What do you think?

Have a nice day,
Berny=




Information forwarded to bug-coreutils@HIDDEN:
bug#9718; Package coreutils. Full text available.
Added tag(s) notabug. Request was from Jim Meyering <jim@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Jim Meyering <jim@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 9718 <at> debbugs.gnu.org:


Received: (at 9718) by debbugs.gnu.org; 14 Oct 2011 21:03:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 14 17:03:38 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1REouo-0003fR-2K
	for submit <at> debbugs.gnu.org; Fri, 14 Oct 2011 17:03:38 -0400
Received: from mx.meyering.net ([88.168.87.75])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jim@HIDDEN>)
	id 1REoul-0003fD-Pj; Fri, 14 Oct 2011 17:03:36 -0400
Received: from rho.meyering.net (localhost.localdomain [127.0.0.1])
	by rho.meyering.net (Acme Bit-Twister) with ESMTP id 3A2A362095;
	Fri, 14 Oct 2011 21:44:31 +0200 (CEST)
From: Jim Meyering <jim@HIDDEN>
To: Eric Blake <eblake@HIDDEN>
Subject: Re: bug#9718: bugs in `date` command?
In-Reply-To: <4E944BCC.9030102@HIDDEN> (Eric Blake's message of "Tue, 11
	Oct 2011 07:59:40 -0600")
References: <20111010163521.GP4958@HIDDEN>
	<7856072A9D04C24B82DFE2B1112FE38A0D83B8E962@HIDDEN>
	<4E944BCC.9030102@HIDDEN>
Date: Fri, 14 Oct 2011 21:44:31 +0200
Message-ID: <87r52fl5nk.fsf@HIDDEN>
Lines: 15
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.9 (--)
X-Debbugs-Envelope-To: 9718
Cc: "9718 <at> debbugs.gnu.org" <9718 <at> debbugs.gnu.org>, Bryan Lee <leebc11@HIDDEN>,
	"Voelker, Bernhard" <bernhard.voelker@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.9 (--)

severity 9718 wishlist
tags 9718 + notabug
thanks

Eric Blake wrote:
...
> As currently coded in the grammar, this is correct.  But if someone
> were willing to put forth the effort to update parsedate.y, as well as
> enhance the testsuite to cover things, it might be possible to improve
> the grammar to accept both common meanings of "second" depending on
> the context where it appears compared to the rest of the date.

Just in case, I've marked this as "wishlist".
If you're interested, please add it to TODO.
If not, please close this.




Information forwarded to bug-coreutils@HIDDEN:
bug#9718; Package coreutils. Full text available.

Message received at 9718 <at> debbugs.gnu.org:


Received: (at 9718) by debbugs.gnu.org; 11 Oct 2011 21:48:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 11 17:48:01 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RDkB6-0001qN-Q3
	for submit <at> debbugs.gnu.org; Tue, 11 Oct 2011 17:48:00 -0400
Received: from hrndva-omtalb.mail.rr.com ([71.74.56.123])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <leebc@HIDDEN>) id 1RDkB4-0001qC-0y
	for 9718 <at> debbugs.gnu.org; Tue, 11 Oct 2011 17:47:58 -0400
X-Authority-Analysis: v=1.1 cv=XWD5/VRj2HUJOhsR8cgmvPBlhMACpZXxseY1Kn/ehQI=
	c=1 sm=0 a=u_3Lvyrfp9IA:10 a=iwcTU3hDW-YA:10 a=kWQ6D_09QQAA:10
	a=ua5oddhXE4YA:10 a=kj9zAlcOel0A:10
	a=wkU1UVxjIdmUjPiqL7IcVQ==:17 a=3fnhGqmWq9Pc806cbiwA:9
	a=CjuIK1q_8ugA:10 a=wkU1UVxjIdmUjPiqL7IcVQ==:117
X-Cloudmark-Score: 0
X-Originating-IP: 97.97.159.198
Received: from [97.97.159.198] ([97.97.159.198:48776] helo=glaive)
	by hrndva-oedge02.mail.rr.com (envelope-from <leebc@HIDDEN>)
	(ecelerity 2.2.3.46 r()) with ESMTP
	id 48/62-07715-779B49E4; Tue, 11 Oct 2011 21:47:35 +0000
Received: from leebc by glaive with local (Exim 4.69)
	(envelope-from <leebc@HIDDEN>)
	id 1RDkAg-0001iC-Vr; Tue, 11 Oct 2011 17:47:34 -0400
Date: Tue, 11 Oct 2011 17:47:34 -0400
From: Bryan Lee <leebc11@HIDDEN>
To: Eric Blake <eblake@HIDDEN>
Subject: Re: bug#9718: bugs in `date` command?
Message-ID: <20111011214734.GU4958@HIDDEN>
References: <20111010163521.GP4958@HIDDEN>
	<7856072A9D04C24B82DFE2B1112FE38A0D83B8E962@HIDDEN>
	<4E944BCC.9030102@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4E944BCC.9030102@HIDDEN>
User-Agent: Mutt/1.5.18 (2008-05-17)
X-Spam-Score: -4.6 (----)
X-Debbugs-Envelope-To: 9718
Cc: "9718 <at> debbugs.gnu.org" <9718 <at> debbugs.gnu.org>, "Voelker,
	Bernhard" <bernhard.voelker@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.9 (---)

Thus Eric Blake hast written on Tue, Oct 11, 2011 at 07:59:40AM -0600, and, according to prophecy, it shall come to pass that:
> On 10/11/2011 01:31 AM, Voelker, Bernhard wrote:
>> Thank you for the report, however I don't see what's wrong.
>> I guess you meant "second wednesday" - which you probably expected
>> to display Oct 19th?

Exactly.

>> As 'second' is already used for the time unit 'second', it cannot
>> be used as an ordinal number for 2nd.

I see that now.  I think I read the definition os "second" when I went
through the info page, but I totally missed the signifigence.  Especially
since "third" worked.

> As currently coded in the grammar, this is correct.  But if someone were  

I agree.

Thank you Eric Blake and Bernhard Voelker for your assistance.  I
appologize for my error.




Information forwarded to bug-coreutils@HIDDEN:
bug#9718; Package coreutils. Full text available.

Message received at 9718 <at> debbugs.gnu.org:


Received: (at 9718) by debbugs.gnu.org; 11 Oct 2011 14:00:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 11 10:00:06 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RDcsH-00078W-9u
	for submit <at> debbugs.gnu.org; Tue, 11 Oct 2011 10:00:06 -0400
Received: from mx1.redhat.com ([209.132.183.28])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <eblake@HIDDEN>) id 1RDcsD-000773-GB
	for 9718 <at> debbugs.gnu.org; Tue, 11 Oct 2011 10:00:03 -0400
Received: from int-mx01.intmail.prod.int.phx2.redhat.com
	(int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9BDxgJo017586
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Tue, 11 Oct 2011 09:59:42 -0400
Received: from [10.3.113.147] (ovpn-113-147.phx2.redhat.com [10.3.113.147])
	by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id p9BDxf55014485; Tue, 11 Oct 2011 09:59:41 -0400
Message-ID: <4E944BCC.9030102@HIDDEN>
Date: Tue, 11 Oct 2011 07:59:40 -0600
From: Eric Blake <eblake@HIDDEN>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.2.23) Gecko/20110928 Fedora/3.1.15-1.fc14
	Lightning/1.0b3pre Mnenhy/0.8.4 Thunderbird/3.1.15
MIME-Version: 1.0
To: "Voelker, Bernhard" <bernhard.voelker@HIDDEN>
Subject: Re: bug#9718: bugs in `date` command?
References: <20111010163521.GP4958@HIDDEN>
	<7856072A9D04C24B82DFE2B1112FE38A0D83B8E962@HIDDEN>
In-Reply-To: <7856072A9D04C24B82DFE2B1112FE38A0D83B8E962@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11
X-Spam-Score: -10.3 (----------)
X-Debbugs-Envelope-To: 9718
Cc: "9718 <at> debbugs.gnu.org" <9718 <at> debbugs.gnu.org>, Bryan Lee <leebc11@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -10.3 (----------)

On 10/11/2011 01:31 AM, Voelker, Bernhard wrote:
> Bryan Lee wrote:
>
>> The term "third wednesday" seems to be evaluating incorrectly.
>>
>> glaive 12:24:56 [~]% date
>> Mon Oct 10 12:24:59 EDT 2011
>>
>> glaive 12:24:59 [~]% date -d "first wednesday"
>> Wed Oct 12 00:00:00 EDT 2011
>>
>> glaive 12:25:09 [~]% date -d "second  wednesday"
>> Wed Oct 12 00:00:01 EDT 2011

Indeed, this was parsed as "first wednesday + 1 second"

> Thank you for the report, however I don't see what's wrong.
> I guess you meant "second wednesday" - which you probably expected
> to display Oct 19th?
>
> As 'second' is already used for the time unit 'second', it cannot
> be used as an ordinal number for 2nd.

As currently coded in the grammar, this is correct.  But if someone were 
willing to put forth the effort to update parsedate.y, as well as 
enhance the testsuite to cover things, it might be possible to improve 
the grammar to accept both common meanings of "second" depending on the 
context where it appears compared to the rest of the date.

-- 
Eric Blake   eblake@HIDDEN    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




Information forwarded to bug-coreutils@HIDDEN:
bug#9718; Package coreutils. Full text available.

Message received at 9718 <at> debbugs.gnu.org:


Received: (at 9718) by debbugs.gnu.org; 11 Oct 2011 07:31:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 11 03:31:27 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RDWoB-0005aD-4C
	for submit <at> debbugs.gnu.org; Tue, 11 Oct 2011 03:31:27 -0400
Received: from senmx12-mx.siemens-enterprise.com ([62.134.46.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <bernhard.voelker@HIDDEN>)
	id 1RDWo8-0005a1-BU
	for 9718 <at> debbugs.gnu.org; Tue, 11 Oct 2011 03:31:25 -0400
Received: from MCHP063A.global-ad.net (unknown [172.29.37.61])
	by senmx12-mx.siemens-enterprise.com (Server) with ESMTP id
	3114523F0461; Tue, 11 Oct 2011 09:31:02 +0200 (CEST)
Received: from MCHP058A.global-ad.net ([172.29.37.55]) by
	MCHP063A.global-ad.net ([172.29.37.61]) with mapi;
	Tue, 11 Oct 2011 09:31:02 +0200
From: "Voelker, Bernhard" <bernhard.voelker@HIDDEN>
To: Bryan Lee <leebc11@HIDDEN>, "9718 <at> debbugs.gnu.org" <9718 <at> debbugs.gnu.org>
Date: Tue, 11 Oct 2011 09:31:00 +0200
Subject: RE: bug#9718: bugs in `date` command?
Thread-Topic: bug#9718: bugs in `date` command?
Thread-Index: AcyHaukOvBl5VEaBRbCGcBqYoAKdYQAe9zpQ
Message-ID: <7856072A9D04C24B82DFE2B1112FE38A0D83B8E962@HIDDEN>
References: <20111010163521.GP4958@HIDDEN>
In-Reply-To: <20111010163521.GP4958@HIDDEN>
Accept-Language: de-DE, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: de-DE, en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Spam-Score: -3.3 (---)
X-Debbugs-Envelope-To: 9718
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.3 (---)

Bryan Lee wrote:

> The term "third wednesday" seems to be evaluating incorrectly.
>=20
> glaive 12:24:56 [~]% date
> Mon Oct 10 12:24:59 EDT 2011
>=20
> glaive 12:24:59 [~]% date -d "first wednesday"
> Wed Oct 12 00:00:00 EDT 2011
>=20
> glaive 12:25:09 [~]% date -d "second  wednesday"
> Wed Oct 12 00:00:01 EDT 2011
>=20
> glaive 12:25:16 [~]% date -d "third  wednesday"
> Wed Oct 26 00:00:00 EDT 2011
>=20
> glaive 12:25:21 [~]% date -d "fourth  wednesday"
> Wed Nov  2 00:00:00 EDT 2011

Thank you for the report, however I don't see what's wrong.
I guess you meant "second wednesday" - which you probably expected
to display Oct 19th?

As 'second' is already used for the time unit 'second', it cannot
be used as an ordinal number for 2nd. The info text clarifies this
(info coreutils 'date invocation'):

     A few ordinal numbers may be written out in words in some contexts.
  This is most useful for specifying day of the week items or relative
  items (see below).  Among the most commonly used ordinal numbers, the
  word `last' stands for -1, `this' stands for 0, and `first' and `next'
  both stand for 1.  Because the word `second' stands for the unit of
  time there is no way to write the ordinal number 2, but for convenience
  `third' stands for 3, `fourth' for 4, `fifth' for 5, `sixth' for 6,
  `seventh' for 7, `eighth' for 8, `ninth' for 9, `tenth' for 10,
  `eleventh' for 11 and `twelfth' for 12.

Did you mean this?

Have a nice day,
Berny=




Information forwarded to bug-coreutils@HIDDEN:
bug#9718; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Oct 2011 16:36:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 10 12:36:56 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RDIqW-0006VV-0i
	for submit <at> debbugs.gnu.org; Mon, 10 Oct 2011 12:36:56 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <leebc@HIDDEN>) id 1RDIpR-0006TT-8U
	for submit <at> debbugs.gnu.org; Mon, 10 Oct 2011 12:35:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <leebc@HIDDEN>) id 1RDIp8-0005PT-TA
	for submit <at> debbugs.gnu.org; Mon, 10 Oct 2011 12:35:32 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE
	autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:47269)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <leebc@HIDDEN>) id 1RDIp8-0005PP-Qr
	for submit <at> debbugs.gnu.org; Mon, 10 Oct 2011 12:35:30 -0400
Received: from eggs.gnu.org ([140.186.70.92]:56246)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <leebc@HIDDEN>) id 1RDIp7-0004XQ-Ke
	for bug-coreutils@HIDDEN; Mon, 10 Oct 2011 12:35:30 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <leebc@HIDDEN>) id 1RDIp6-0005P9-Gv
	for bug-coreutils@HIDDEN; Mon, 10 Oct 2011 12:35:29 -0400
Received: from hrndva-omtalb.mail.rr.com ([71.74.56.124]:37297)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <leebc@HIDDEN>) id 1RDIp6-0005Og-F0
	for bug-coreutils@HIDDEN; Mon, 10 Oct 2011 12:35:28 -0400
X-Authority-Analysis: v=1.1 cv=cSzO76bR5tCkfUT9bEmBgR3d7VUusRLeq08eKGxa4EU=
	c=1 sm=0 a=u_3Lvyrfp9IA:10 a=kWQ6D_09QQAA:10 a=ua5oddhXE4YA:10
	a=kj9zAlcOel0A:10 a=wkU1UVxjIdmUjPiqL7IcVQ==:17
	a=KwLA2uOilzorl_0mfO4A:9 a=Es0umpMMuP-R6c_YXxEA:7
	a=CjuIK1q_8ugA:10 a=wkU1UVxjIdmUjPiqL7IcVQ==:117
X-Cloudmark-Score: 0
X-Originating-IP: 97.97.159.198
Received: from [97.97.159.198] ([97.97.159.198:59454] helo=glaive)
	by hrndva-oedge04.mail.rr.com (envelope-from <leebc@HIDDEN>)
	(ecelerity 2.2.3.46 r()) with ESMTP
	id 49/A0-05514-9CE139E4; Mon, 10 Oct 2011 16:35:21 +0000
Received: from leebc by glaive with local (Exim 4.69)
	(envelope-from <leebc@HIDDEN>) id 1RDIoz-0001wO-Bp
	for bug-coreutils@HIDDEN; Mon, 10 Oct 2011 12:35:21 -0400
Date: Mon, 10 Oct 2011 12:35:21 -0400
From: Bryan Lee <leebc11@HIDDEN>
To: bug-coreutils@HIDDEN
Subject: bugs in `date` command?
Message-ID: <20111010163521.GP4958@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.18 (2008-05-17)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -6.6 (------)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 10 Oct 2011 12:36:54 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.6 (------)

The term "third wednesday" seems to be evaluating incorrectly.


glaive 12:24:56 [~]% date
Mon Oct 10 12:24:59 EDT 2011

glaive 12:24:59 [~]% date -d "first wednesday"
Wed Oct 12 00:00:00 EDT 2011

glaive 12:25:09 [~]% date -d "second  wednesday"
Wed Oct 12 00:00:01 EDT 2011

glaive 12:25:16 [~]% date -d "third  wednesday"
Wed Oct 26 00:00:00 EDT 2011

glaive 12:25:21 [~]% date -d "fourth  wednesday"
Wed Nov  2 00:00:00 EDT 2011

glaive 12:25:27 [~]% date -d "fifth  wednesday"
Wed Nov  9 00:00:00 EST 2011

glaive 12:25:34 [~]% date -d "next  wednesday"
Wed Oct 12 00:00:00 EDT 2011

glaive 12:25:41 [~]% date -d "last  wednesday"
Wed Oct  5 00:00:00 EDT 2011

glaive 12:25:46 [~]% date -d "this  wednesday"
Wed Oct 12 00:00:00 EDT 2011

glaive 12:33:39 [~]% date -d "third  wednesday this month"
Wed Oct 26 00:00:00 EDT 2011

glaive 12:34:11 [~]% date -d "3  wednesday"
Wed Oct 26 00:00:00 EDT 2011

glaive 12:34:13 [~]% date -d "2  wednesday"
Wed Oct 19 00:00:00 EDT 2011

glaive 12:34:28 [~]% date -d "1  wednesday"
Wed Oct 12 00:00:00 EDT 2011

glaive 12:34:39 [~]% date -d "4  wednesday"
Wed Nov  2 00:00:00 EDT 2011





Acknowledgement sent to Bryan Lee <leebc11@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#9718; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.