Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-11-2006, 09:46 AM   #1
Registered: Mar 2006
Distribution: Ubuntu 6.10
Posts: 112

Rep: Reputation: 15
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?
Old 04-11-2006, 12:34 PM   #2
Registered: Jan 2006
Location: Israel
Distribution: Windows Xp, Slackware
Posts: 316
Blog Entries: 3

Rep: Reputation: 30
info date
in console you'll find all the information you need there.
Old 04-11-2006, 01:18 PM   #3
Registered: Mar 2006
Distribution: Ubuntu 6.10
Posts: 112

Original Poster
Rep: Reputation: 15
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.
Old 04-11-2006, 01:30 PM   #4
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
The alternative, as root is:

date MMDDhhmm

(Month Day Hour Minute)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the time... matsko Linux - Software 3 04-03-2006 01:11 AM
Changing time ethics Fedora 9 08-02-2005 01:08 PM
Changing the time on Slackware 9.1 bufu Linux - Laptop and Netbook 5 12-24-2003 12:54 AM
Time keeps changing? threedguy Linux - Software 5 10-08-2003 09:05 PM
time keeps changing mcd Linux - Newbie 2 08-22-2003 08:12 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration