LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Incorrect clock time (https://www.linuxquestions.org/questions/linux-newbie-8/incorrect-clock-time-656688/)

Stephan_Craft 07-18-2008 02:17 PM

Incorrect clock time
 
how tro change the time in Centos?
my crontabs not working correctly(

df6269 07-18-2008 02:23 PM

like below:
#date 200807191111

Can you also check the timezone if correctly?

Stephan_Craft 07-18-2008 02:26 PM

Quote:

Originally Posted by df6269 (Post 3219201)
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?

Absolute_P 07-18-2008 04:55 PM

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

Stephan_Craft 07-19-2008 07:39 PM

thanks!
I need to reboot the system? to take effect for Cron Jobs?

pinniped 07-19-2008 11:08 PM

Quote:

Originally Posted by Absolute_P (Post 3219323)
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?


All times are GMT -5. The time now is 06:22 PM.