LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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
 
Thread Tools
Old 07-18-2008, 03:17 PM   #1
Stephan_Craft
Member
 
Registered: Jul 2008
Posts: 138
Thanked: 0
Incorrect clock time


[Log in to get rid of this advertisement]
how tro change the time in Centos?
my crontabs not working correctly(
Stephan_Craft is offline     Reply With Quote
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
Thanked: 0
like below:
#date 200807191111

Can you also check the timezone if correctly?
df6269 is offline     Reply With Quote
Old 07-18-2008, 03:26 PM   #3
Stephan_Craft
Member
 
Registered: Jul 2008
Posts: 138
Thanked: 0

Original Poster
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?
Stephan_Craft is offline     Reply With Quote
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
Thanked: 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..
Absolute_P is offline     Reply With Quote
Old 07-19-2008, 08:39 PM   #5
Stephan_Craft
Member
 
Registered: Jul 2008
Posts: 138
Thanked: 0

Original Poster
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..
Stephan_Craft is offline     Reply With Quote
Old 07-20-2008, 12:08 AM   #6
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732
Thanked: 6
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?
pinniped is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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/Novell 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
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 05:59 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration