LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   Changing the time on Slackware 9.1 (http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/changing-the-time-on-slackware-9-1-a-127426/)

bufu 12-19-2003 10:08 PM

Changing the time on Slackware 9.1
 
Sorry, new to linux, very new....yes a newbie.

Anyways, I installed Slackware 9.1 into my old Compaq Presario 1680 and well, I tired changing the time..it wouldn't let me do something as simple as that. I tried "man date" and just the simple "date" parameters...but I can't seem to get it to work

Would someone please give me an example of what I will have to type in the terminal?

THanks,
BUFU

crabboy 12-19-2003 10:29 PM

It's been a long time since I havechanged the date by hand. Run the date -s command as root:
Code:

date -s "Dec 19 22:28:00 2003"
Or if you are connect to the internet you can set the time from a timeserver:
Code:

ntpdate tick.usno.navy.mil

bufu 12-19-2003 10:42 PM

ty...i got it =)

hypexr 12-20-2003 07:00 AM

A little more info to share
 
Here is a little more info on the matter of changing the time zone, date, and using NTP to keep the time on track. Cheers http://hypexr.homelinux.org/tips.html#date

Shade 12-24-2003 12:32 AM

i usually just use something like :
Code:

date 12230029
Which would set it to 12:29 am, 12/23

Easy?
Month, day, hour, minute.

:)

-Shade

hypexr 12-24-2003 01:54 AM

Yes, but as stated in the linked page above that does not change the time in the hardware clock. you also need to use the hwclock command or you will have to use the date command everytime you restart your computer.


All times are GMT -5. The time now is 09:05 PM.