Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Feb 2000 23:41:48 +0000
From:      Brian Somers <brian@Awfulhak.org>
To:        johan@carlstedt.net
Cc:        freebsd-bugs@FreeBSD.ORG, brian@hak.lan.Awfulhak.org
Subject:   Re: Bug in the FreeBSD date command 
Message-ID:  <200002022341.XAA03219@hak.lan.Awfulhak.org>
In-Reply-To: Message from Johan Carlstedt <johan.carlstedt@boo.com>  of "Wed, 02 Feb 2000 13:22:12 GMT." <38982F84.7D005BF@boo.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <brian@Awfulhak.org>                        <brian@FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@OpenBSD.org>
Don't _EVER_ lose your sense of humour !          <brian@FreeBSD.org.uk>




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002022341.XAA03219>