From owner-freebsd-bugs Thu May 31 16:42:23 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from buddha.automagic.org (buddha-nexxia.automagic.org [207.61.141.34]) by hub.freebsd.org (Postfix) with SMTP id 4C02C37B424 for ; Thu, 31 May 2001 16:42:20 -0700 (PDT) (envelope-from jabley@buddha.automagic.org) Received: (qmail 9184 invoked by uid 100); 31 May 2001 23:42:15 -0000 Date: Thu, 31 May 2001 19:42:15 -0400 From: Joe Abley To: brian@FreeBSD.org Cc: freebsd-bugs@FreeBSD.org Subject: Re: bin/27796: Use of -v flag of date(1) can give non-intuitive results Message-ID: <20010531194215.S29237@buddha.home.automagic.org> References: <200105312329.f4VNTUE08684@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105312329.f4VNTUE08684@freefall.freebsd.org>; from brian@FreeBSD.org on Thu, May 31, 2001 at 04:29:30PM -0700 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, May 31, 2001 at 04:29:30PM -0700, brian@FreeBSD.org wrote: > Your example is avoided in the man page as this rounding is done by > mktime(3). Another good (confusing) example is > ``date -v3m -v29d -v-1m''. > > If you (or anyone) care to produce documentation patches, I'm certainly > happy to see if I can get them past a freebsd-doc review :) It did occur to me after I sent this in that the problem was really that I was asking an ambiguous question, and I have not yet decided what the "correct" answer to "add one month" is in these circumstances. I suspect there is no good answer :) I will see if I can cast some words to succinctly describe these kinds of potential pitfalls for the date(1) page. Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message