LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-18-2008, 03:17 PM   #1
Stephan_Craft
Member
 
Registered: Jul 2008
Posts: 184

Rep: Reputation: 30
Incorrect clock time


how tro change the time in Centos?
my crontabs not working correctly(
 
Old 07-18-2008, 03:23 PM   #2
df6269
LQ Newbie
 
Registered: Jul 2008
Location: Taiwan
Distribution: openSUSE 10.3, 11.0, FreeBSD 6.3, 7.0, OpenBSD 4.1
Posts: 26

Rep: Reputation: 15
like below:
#date 200807191111

Can you also check the timezone if correctly?
 
Old 07-18-2008, 03:26 PM   #3
Stephan_Craft
Member
 
Registered: Jul 2008
Posts: 184

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by df6269 View Post
like below:
#date 200807191111

Can you also check the timezone if correctly?
i don't know how
2008 07 19 11 11
11 11
hours? minutes?
 
Old 07-18-2008, 05:55 PM   #4
Absolute_P
LQ Newbie
 
Registered: Nov 2004
Location: Land of the penguine's or maybe south london
Distribution: Gentoo 2008.0 (2.6.24)on Laptop Gentoo 2008.0 (2.6.25)
Posts: 16

Rep: Reputation: 0
I believe that is wrong, the year goes last as far as im aware. Month, Day, hour, minute and Year, so date 071822522008

Code:
leon@leon-laptop:~$ sudo date 071822522008
Fri Jul 18 22:52:00 BST 2008
you cant set seconds so as soon as you hit enter on the command line, it reverts to 00 seconds

Last edited by Absolute_P; 07-18-2008 at 05:56 PM.
 
Old 07-19-2008, 08:39 PM   #5
Stephan_Craft
Member
 
Registered: Jul 2008
Posts: 184

Original Poster
Rep: Reputation: 30
thanks!
I need to reboot the system? to take effect for Cron Jobs?

Last edited by Stephan_Craft; 07-19-2008 at 09:53 PM.
 
Old 07-20-2008, 12:08 AM   #6
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Quote:
Originally Posted by Absolute_P View Post
you cant set seconds so as soon as you hit enter on the command line, it reverts to 00 seconds
Not true; the seconds comes after the year; from the manual:

date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]

It would be absolutely bizarre if you couldn't set the seconds; and what would 'hwclock' tell the RTC?
 
  


Reply


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
Clock Time incorrect after shutting down... ltcolfury SUSE / openSUSE 14 07-17-2006 01:50 PM
Where does RH8 daily set system time to hardware clock time smartnorman Red Hat 1 05-24-2006 03:42 PM
Various clock issues: Clock shows wrong time only in Knoppmyth, & CMOS time change ? davidbix General 1 04-05-2006 10:58 PM
[SOLVED] Time shown incorrect? druuna LQ Suggestions & Feedback 8 03-30-2005 04:15 PM
Incorrect time Delphinusnz Mandriva 2 10-12-2004 03:22 AM


All times are GMT -5. The time now is 07:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration