From nobody@FreeBSD.org  Wed Jan 31 20:20:27 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 573B237B67D
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 31 Jan 2001 20:20:27 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f114KRe88833;
	Wed, 31 Jan 2001 20:20:27 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200102010420.f114KRe88833@freefall.freebsd.org>
Date: Wed, 31 Jan 2001 20:20:27 -0800 (PST)
From: adsouza@math.uwaterloo.ca
To: freebsd-gnats-submit@FreeBSD.org
Subject: the -v flag of the date command does not work quite as expected
X-Send-Pr-Version: www-1.0

>Number:         24773
>Category:       bin
>Synopsis:       the -v flag of the date command does not work quite as expected
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    dd
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 31 20:30:00 PST 2001
>Closed-Date:    Wed Apr 25 19:16:02 PDT 2001
>Last-Modified:  Wed Apr 25 19:16:10 PDT 2001
>Originator:     Antonio D'souza
>Release:        4.2-stable
>Organization:
Checkfree i-Solutions
>Environment:
FreeBSD 4.2-STABLE #0: Fri Jan 19 21:51:36 EST 2001     root@alice.cshouse:/usr/obj/usr/src/sys/QUIK  i386
>Description:
When I try to use the following line to change the current day of my system time, it has no effect:
date -v +3d

>How-To-Repeat:
try to alter the date with the d modifier of the -v option in the date utility
>Fix:


>Release-Note:
>Audit-Trail:

From: Dima Dorfman <dima@unixfreak.org>
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
 
State-Changed-From-To: open->suspended 
State-Changed-By: dd 
State-Changed-When: Thu Mar 15 18:20:25 PST 2001 
State-Changed-Why:  
I've fixed the man page in -current; will MFC after code freeze. 


Responsible-Changed-From-To: freebsd-bugs->dd 
Responsible-Changed-By: dd 
Responsible-Changed-When: Thu Mar 15 18:20:25 PST 2001 
Responsible-Changed-Why:  
My MFC reminder. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=24773 
State-Changed-From-To: suspended->closed 
State-Changed-By: dd 
State-Changed-When: Wed Apr 25 19:16:02 PDT 2001 
State-Changed-Why:  
MFC'd. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=24773 
>Unformatted:
