From owner-freebsd-questions@FreeBSD.ORG Sun Sep 30 23:16:52 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15D1516A419 for ; Sun, 30 Sep 2007 23:16:52 +0000 (UTC) (envelope-from jekillen@prodigy.net) Received: from smtp122.sbc.mail.sp1.yahoo.com (smtp122.sbc.mail.sp1.yahoo.com [69.147.64.95]) by mx1.freebsd.org (Postfix) with SMTP id F162413C44B for ; Sun, 30 Sep 2007 23:16:51 +0000 (UTC) (envelope-from jekillen@prodigy.net) Received: (qmail 46642 invoked from network); 30 Sep 2007 23:16:51 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=prodigy.net; h=Received:X-YMail-OSG:In-Reply-To:References:Mime-Version:Content-Type:Message-Id:Content-Transfer-Encoding:Cc:From:Subject:Date:To:X-Mailer; b=sDtZyUg0v4/jY+1D2vo7rMp3dHUGGzw0Sx1QthlDjqW6Tf9/As4/u833NeejIE5yVccxDawBkLXkYVtVkVz6IR/7n9pgiO8u+PAi9+scn7NgSF61QVXhFvxqXK2eBsxpMl8QB/i4pBVpDnC7md9nPhO5pqTqFdwMM9INTdQ/viw= ; Received: from unknown (HELO ?75.7.236.228?) (jekillen@prodigy.net@75.7.236.228 with plain) by smtp122.sbc.mail.sp1.yahoo.com with SMTP; 30 Sep 2007 23:16:51 -0000 X-YMail-OSG: uorMvbUVM1n7x47Czz3_xPxT1VfwjyEft2kEOPKUs12kpzqUaIg5FrhcJPqPVoUntvasQKj5JjmSVrIUKB_oIqk5nONpwSJDZ9SbwpxVJZHwxB4Po2YtDQ.0fVqwQK.53Mgaxw-- In-Reply-To: <46FF54E5.4020502@cran.org.uk> References: <5e433b6210a52ae0220ae0a20d0353e1@prodigy.net> <1191124332.5997.21.camel@new-host> <46FF54E5.4020502@cran.org.uk> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <6852662bd22e8de7aa12336ea1404a67@prodigy.net> Content-Transfer-Encoding: 7bit From: jekillen Date: Sun, 30 Sep 2007 16:17:30 -0700 To: Bruce Cran X-Mailer: Apple Mail (2.622) Cc: FreeBSD Mailing List Subject: Re: using the date command X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Sep 2007 23:16:52 -0000 On Sep 30, 2007, at 12:48 AM, Bruce Cran wrote: > Brian A. Seklecki wrote: >> To set time: >> >> $ sudo /usr/sbin/ntpdate pool.ntp.org >> 29 Sep 23:48:31 ntpdate[9404]: adjust time server 66.250.45.2 offset >> 0.001289 sec >> > ntpdate is deprecated, you should use "ntpd -q" instead if you want > ntpd to set the time once then exit. From ntpdate(8): > > Note: The functionality of this program is now available in the ntpd(8) > program. See the -q command line option in the ntpd(8) page. > After a > suitable period of mourning, the ntpdate utility is to be retired > from > this distribution. > > Also, ntpd wil refuse to update the time if the delta is more than > 1000s by default, but you can use the -g option to override this. To > set the date to within a reasonable delta, use something like "date > 200709282027". If you want to set the time more accurately using NTP, > edit /etc/ntp.conf and add "server pool.ntp.org" to it. Save it then > run "ntpd -q". If you need to configure the time zone, an easy way to > do this is to run sysinstall and select "Configuration --> Time Zone". >> To date info about your timezone settings: >> >> $ zdump /etc/localtime /etc/localtime Sat Sep 29 23:49:19 2007 EDT >> >> Options: >> >> $ ls /usr/shaoneinfo/ | egrep -v "^d" >> total 78 >> -rw-r--r-- 1 root wheel 755 Aug 22 11:11 CET >> -rw-r--r-- 1 root wheel 837 Aug 22 11:11 CST6CDT >> -rw-r--r-- 1 root wheel 679 Aug 22 11:11 EET >> -rw-r--r-- 1 root wheel 56 Aug 22 11:11 EST >> -rw-r--r-- 1 root wheel 837 Aug 22 11:11 EST5EDT >> [...] >> >> To set timezone: >> >> $ ln -s /share/zoneinfo/$WHATEVER /etc/localtime >> >> For you probably PST8PDT. >> >> For your best NTP experience, use OpenNTP from >> ports: /usr/ports/net/openntpd/ >> >> ~BAS >> >> >> >> On Sat, 2007-09-29 at 20:33 -0700, jekillen wrote: >> Thanks, more very helpful info; Jeff K