From owner-freebsd-bugs Wed Feb 2 15:41:44 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from awfulhak.org (dynamic-51.max4-du-ws.dialnetwork.pavilion.co.uk [212.74.9.179]) by builder.freebsd.org (Postfix) with ESMTP id 7B4D64123 for ; Wed, 2 Feb 2000 15:41:41 -0800 (PST) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id XAA63266; Wed, 2 Feb 2000 23:41:44 GMT (envelope-from brian@lan.awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id XAA03219; Wed, 2 Feb 2000 23:41:48 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200002022341.XAA03219@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: johan@carlstedt.net Cc: freebsd-bugs@FreeBSD.ORG, brian@hak.lan.Awfulhak.org Subject: Re: Bug in the FreeBSD date command In-Reply-To: Message from Johan Carlstedt of "Wed, 02 Feb 2000 13:22:12 GMT." <38982F84.7D005BF@boo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 02 Feb 2000 23:41:48 +0000 From: Brian Somers Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > One line summary of the problem: > > date -v commmand returns incorrect date information for February/2000 > > Full Description: > > When invoking the date command using the -v option dates for days in > February/2000 are reported incorrectly: > > The second invokation below shows an example of the error: > > bash-2.02$ date -v2000y -v01m -v10d > Mon Jan 10 21:41:19 GMT 2000 > bash-2.02$ date -v2000y -v02m -v10d > Fri Mar 10 21:41:22 GMT 2000 > bash-2.02$ date -v2000y -v03m -v10d > Fri Mar 10 21:41:25 GMT 2000 > bash-2.02$ date -v2000y -v04m -v10d > Mon Apr 10 22:41:27 BST 2000 > > Environment: > > FreeBSD plum.flirble.org 3.4-STABLE FreeBSD 3.4-STABLE #0: Fri Dec 31 > 11:35:21 GMT 1999 scot@plum2.flirble.org:/usr/src/sys/compile/PLUM2 > i386 This is not a bug. The -v arguments are applied in the order specified. If you want the correct answer, apply the -v*d option first. I believe the above failed because it was run on the 30th/31st of the month. -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message