From owner-freebsd-current@FreeBSD.ORG Wed Sep 8 11:09:53 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13D5516A4CE for ; Wed, 8 Sep 2004 11:09:53 +0000 (GMT) Received: from vhost109.his.com (vhost109.his.com [216.194.225.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4C9943D41 for ; Wed, 8 Sep 2004 11:09:52 +0000 (GMT) (envelope-from brad@stop.mail-abuse.org) Received: from [10.0.1.3] (localhost.his.com [127.0.0.1]) by vhost109.his.com (8.12.11/8.12.3) with ESMTP id i88B9j7C037011; Wed, 8 Sep 2004 07:09:50 -0400 (EDT) (envelope-from brad@stop.mail-abuse.org) Mime-Version: 1.0 X-Sender: bs663385@127.0.0.1 Message-Id: In-Reply-To: <38933.1094640660@critter.freebsd.dk> References: <38933.1094640660@critter.freebsd.dk> Date: Wed, 8 Sep 2004 13:09:35 +0200 To: Poul-Henning Kamp From: Brad Knowles Content-Type: text/plain; charset="us-ascii" ; format="flowed" cc: current@freebsd.org Subject: Re: Idea for date(1) improvement. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Sep 2004 11:09:53 -0000 At 12:51 PM +0200 2004-09-08, Poul-Henning Kamp wrote: > Anyone up for making it possible to say: > > date -w "2 days ago" I think that's a very good idea. Could we centralize that kind of code in a library somewhere and get everyone to call it instead of re-inventing that wheel? Another idea I've been thinking about is looking at a special file or directory somewhere early in the boot process, and making sure that the date/time stamp is set to be at least as recent as that, before the network is up and you can start ntpd, etc.... This should help those people who have CMOS battery problems when their system is rebooted and the clock gets set to extremely weird values, which can make it more difficult to get ntpd in a sane mode. Maybe the atime of /? -- Brad Knowles, "Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety." -- Benjamin Franklin (1706-1790), reply of the Pennsylvania Assembly to the Governor, November 11, 1755 SAGE member since 1995. See for more info.