Web Hosting Talk







View Full Version : System Time


g333
06-02-2002, 08:18 PM
Can someone please help me out and tell me how to change my system time. The problem is, it has am and pm mixed up. Is it possible to 'sync it with a time server or can I manually change it?

serve-you
06-02-2002, 10:07 PM
(for linux)
For OS time:
date -s 21:57:45
To sync the bios time to the OS time:
hwclock --systohc

-Dan

viGeek
06-02-2002, 10:12 PM
Su - (to root)

in command prompt [date -s 'date etc'] This is the command to set time & date.

I recommend in command propmt type [date --help], to get a grip of things.

ckpeter
06-02-2002, 10:50 PM
use rdate -s <time server ip> to sync with a public server.

Search google for "public time server" for a list.

Peter

viGeek
06-02-2002, 11:05 PM
As Stated Above, which also a good method.
This is the time server i use :)

rdate -s tick.uh.edu
Set server time to accordance with public time server.


rdate -p tick.uh.edu
to get the server time of the public time server.

iamdave
06-03-2002, 01:10 AM
I use the following:
/usr/sbin/ntpdate ntp.nasa.gov

admin0
06-03-2002, 05:02 AM
For a quick change,


date MMddHHmm ENTER


where,
MM: current month 2 digits
dd: current day 2 digits
HH: hour ..2 digits [00:00 - 23:59]
mm: minute 2 digits [00 - 59]

ss: seconds -- optional [date MMddHHmmss]


for example

date 06031430

for June-03, 14:30 HRS i.e 2:30 PM

Hope this helps