The Friday 2004-12-10 at 09:55 -0500, Kelly J. Morris wrote:
Then set up the clock, as root, using a console. Forget kde.
Carlos - I qualify as a certified CLI idiot. I can't seem to get the syntax of the new date and time correctly (which I assume replaces STRING below). I've tried man and howto and, while there are explanations, there are no examples and at my (subterranean) level, that's what I need.
You are absolutely correct, some man pages are good examples of how not to write user documentation :-p I also stumbled time ago with that one, and found the correct string by trial and error; but I forgot to write it up at the time, so I did not mail them when I told you to use date and read the man page. I forgot that "detail", sorry.
date --set=STRING (see man)
Looking again at that man page, I find this other syntax is easier: date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]] as long as I don't have to state the year, then "I" have problems as well. Let me see... ouch, don't try this, linux dislikes you touching the clock and has weird effects (cron gets very "pissed", for example). nimrodel:~ # date --iso --set=2005-12-11 2005-12-11 nimrodel:~ # date Sun Dec 11 00:00:05 CET 2005 nimrodel:~ # date --iso --set=2004-12-11 2004-12-11 nimrodel:~ # date Sat Dec 11 00:00:03 CET 2004 Ouch, I intentended to modify the date, not time. Time got reset to 00:00. nimrodel:~ # date --iso --set="2004-12-11 01:21" 2004-12-11 nimrodel:~ # date -u Sat Dec 11 00:21:18 UTC 2004 nimrodel:~ # rccron restart Shutting down CRON daemon done Starting CRON daemon done nimrodel:~ # rm /etc/adjtime -- Cheers, Carlos Robinson