Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2001 20:50:02 -0800 (PST)
From:      Dima Dorfman <dima@unixfreak.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/24773: the -v flag of the date command does not work quite as expected 
Message-ID:  <200102010450.f114o2b91519@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/24773; it has been noted by GNATS.

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
 


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?200102010450.f114o2b91519>