LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   changing the time in slackware (https://www.linuxquestions.org/questions/linux-newbie-8/changing-the-time-in-slackware-434080/)

wakeboarder3780 04-11-2006 09:46 AM

changing the time in slackware
 
After daylight savings time my clock went ahead two hours instead of one and i must set it back one. I realized i don't even know how to set the time in slackware :( I did some research and apparently you can do it with date command but i couldnt get the syntax right. I tried date %l and the respective number one less than the current hour, and apparently thats not correct. Any help?

IceChant 04-11-2006 12:34 PM

Use
Code:

info date
in console you'll find all the information you need there.

wakeboarder3780 04-11-2006 01:18 PM

Well for anyone else who might be wondering what to do, you use the -set flag on date and then type in the corresponding time while logged in as su. The current time before changing was 2:14 in the afternoon, so i typed the following command while logged in as su.
date -set 13:14 which took care of it. Not sure what %l really is for but its not this. Thanks for the help.

Komakino 04-11-2006 01:30 PM

The alternative, as root is:

date MMDDhhmm

(Month Day Hour Minute)


All times are GMT -5. The time now is 11:44 PM.