From owner-freebsd-bugs Wed Jan 31 20:50:20 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7BD4C37B491 for ; Wed, 31 Jan 2001 20:50:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f114o2b91519; Wed, 31 Jan 2001 20:50:02 -0800 (PST) (envelope-from gnats) Date: Wed, 31 Jan 2001 20:50:02 -0800 (PST) Message-Id: <200102010450.f114o2b91519@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Dima Dorfman Subject: Re: bin/24773: the -v flag of the date command does not work quite as expected Reply-To: Dima Dorfman Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/24773; it has been noted by GNATS. From: Dima Dorfman To: adsouza@math.uwaterloo.ca Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: bin/24773: the -v flag of the date command does not work quite as expected Date: Wed, 31 Jan 2001 20:46:28 -0800 > When I try to use the following line to change the current day of my > system time, it has no effect: > date -v +3d It's not supposed to change the date. Perhaps the manual page is a little confusing. What it does is display the date after the modifications you requested. For example: dima@hornet% date Wed Jan 31 20:39:58 PST 2001 dima@hornet% date -v +3d Sat Feb 3 20:40:01 PST 2001 The second is is three days (and some seconds, obviously) ahead. That's what -v does. It doesn't actually change your system's perception of the current date. I'd fix the manual page, but I'm not sure exactly how to word it. "Adjust" is correct, it just has the implication that it will also set it after adjusting it. Hope this helps Dima Dorfman dima@unixfreak.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message