Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 May 2001 19:42:15 -0400
From:      Joe Abley <jabley@mfnx.net>
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>
In-Reply-To: <200105312329.f4VNTUE08684@freefall.freebsd.org>; from brian@FreeBSD.org on Thu, May 31, 2001 at 04:29:30PM -0700
References:  <200105312329.f4VNTUE08684@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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