LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-07-2003, 11:43 PM   #1
pyschomike15
Member
 
Registered: Jan 2003
Distribution: Slackware 10.1
Posts: 46

Rep: Reputation: 15
Changing the time in Slack?


I must have accidently set a wrong setting in the config of Slack. But somehow my time got knocked about 4 hours off. There is no option to change the time but i know there is some way. How do I change the time of the clock.

Mike
 
Old 08-08-2003, 12:37 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
That happened to me, too, somehow. It's actually the 'date' command but when I tried to fix it I ended up in 1977 - couldn't get the syntax right for some reason - so I just reset it from the BIOS.

-- Oh, and during setup you're given the option of 'universal time coordinate' or 'local' and you'll probably want local. I think installing Mandrake screwed mine up, but I'm not sure how, as it's local and I always say local whenever the issue comes up.

Last edited by slakmagik; 08-08-2003 at 12:39 AM.
 
Old 08-08-2003, 04:37 AM   #3
Noryungi
Member
 
Registered: Jul 2003
Location: --> X <-- You are here.
Distribution: Slackware, OpenBSD
Posts: 305

Rep: Reputation: 53
Always remember: "apropos", "whatis" and "man" are your friends!

Use "date" (probably as root) to change the date and the time on a Slackware Linux system.

I am not in front of my Slackware machine right now, but here is a link to the man page of a Red Hat system (should be the same on Slackware):
http://www.freebsd.org/cgi/man.cgi?q...nux%2fi386+7.3

Hope this helps!
 
Old 08-08-2003, 08:30 AM   #4
Kjetil4455
Member
 
Registered: Jul 2003
Location: Norway/Drammen
Distribution: Slackware~
Posts: 250

Rep: Reputation: 30
just do it from X? easyer
 
Old 08-08-2003, 09:02 AM   #5
Locura
Member
 
Registered: May 2003
Distribution: Ubuntu 6.10 SE, Mac OS 10.4.8
Posts: 370

Rep: Reputation: 30
From the man page...

date [OPTION] [MMDDhhmm[[CC]YY][.ss]]

This has to be run as root. you have to specify at least the month, day, hour, and minute, so to set the time to 4:00 PM on August 7th, you would run the command date 08071600.

If you need to change the year you can add the year onto the end of the number, and if you want to set it down to the second, you use a period, then the number of seconds, at the very end of the number. So, to set it to 4:00:23 PM on August 7th, you would use date 08071600.23. And in the case of it having been set back to 1977 like digiot mentioned, you would just use the command date 080716002003.23 to set it to the appropriate year.

Last edited by Locura; 08-08-2003 at 09:04 AM.
 
Old 08-08-2003, 11:38 AM   #6
pyschomike15
Member
 
Registered: Jan 2003
Distribution: Slackware 10.1
Posts: 46

Original Poster
Rep: Reputation: 15
Hey thanks for the info. I got it changed right away. Also I did try using man and whereis but not for date i used the word clock because that what the clock program is called. It turned out to be some program to measure your cpu. Thanks again.

Mike
 
Old 08-09-2003, 01:03 AM   #7
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
Check this link and it'll never happen again:

http://members.cox.net/laitcg/new/time.html

There are a lot of other great Slack tips there, too.

Enjoy!
--- Cerbere
 
Old 08-10-2003, 09:38 AM   #8
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Rep: Reputation: 30
I like setting my time based on the command 'ntpdate time.nist.gov' ... That usually works fine for me. :-)

root@trance:/home/astro# ntpdate time.nist.gov
10 Aug 10:37:59 ntpdate[17140]: step time server 192.43.244.18 offset -23.311424 sec
 
  


Reply



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 time ethics Fedora 9 08-02-2005 01:08 PM
Changing the time in FluxBox? MadCactus Linux - Software 1 11-22-2003 09:45 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
Time keeps changing eternity1700 Linux - General 2 02-17-2003 12:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:53 AM.

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