[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to set correct time?



On Thu, Apr 19, 2001 at 11:58:02PM +0100, Rory Campbell-Lange wrote:
> I foolishly don't know how to set the correct time for my system clock.
> The timezone is correctly set to London/England, but the time is about 6
> hours out (date reports the time in 'BST' - I presume this is "British
> Standard Time").
> 
> I tried using the date command but nothing happened.

apt-get install ntpdate if you have network connectivity.  you can
have cron run it regularly if you leave your machine running for long
periods, its not as precise as running full fledged ntpd but its
sufficient for most purposes.

if you don't have network connectivity you need to run as root:

date 041902002001

that would set the date to 4/19/2001 at 2:00.  (time is in 24hr
format).  date --help shows the syntax.  

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgpKOY97t10T_.pgp
Description: PGP signature


Reply to: