From owner-freebsd-questions Wed Jul 9 19:20:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id TAA29918 for questions-outgoing; Wed, 9 Jul 1997 19:20:42 -0700 (PDT) Received: from limbo.senate.org (nathan@senate.org [204.141.125.38]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA29911 for ; Wed, 9 Jul 1997 19:20:36 -0700 (PDT) Received: (from nathan@localhost) by limbo.senate.org (8.8.5/8.8.5) id WAA06711; Wed, 9 Jul 1997 22:19:30 -0400 (EDT) From: Nathan Dorfman Message-Id: <199707100219.WAA06711@limbo.senate.org> Subject: Re: how do I set the time? In-Reply-To: <199707100124.DAA03060@townsend.ericsson.se> from Kent Boortz at "Jul 10, 97 03:24:14 am" To: kent@erlang.ericsson.se Date: Wed, 9 Jul 1997 22:19:30 -0400 (EDT) Cc: darin@media-net.net, questions@FreeBSD.ORG, kent@erlang.ericsson.se X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk You can have cron run "ntpdate tick.usno.navy.mil" every midnight or so. tick and tock are U.S. military atomic clock sites (pretty accurate :>). > > Run "date" with an argument as root. See "man date". A small extract > > The command: > > date 8506131627 > > sets the date to ``June 13, 1985, 4:27 PM''. > > The command: > > date 1432 > > sets the time to 2:32 PM, without modifying the date. > > If you have a portable that you sometimes connect in a network and > want to set the time to match theirs you can connect to a "time > server". I use > > % ntpdate erlang > > because "erlang" runs "xntd". > > /kgb >