SuSE Linux: All versions
Easily done with the date command e.g. "Thu Jul 10 19:09:00 MEST 1997":
date 071019091997(Format: MMTTSSMMJJJJ ) or with the ISO-format:
date -s '1997-07-10 19:09:00' +'%Y-%M-%d %T'more informations with date --help | less or at the info-pages
info date
The clock command writes and reads the CMOS clock. If you choose GMT for the CMOS clock, you have to set the clock command always with -u. e.g.:
+/kfr $ clock -ur Thu Jul 10 19:15:10 1997 +/kfr $ clock -r Thu Jul 10 17:15:11 1997 +/kfr $reads the appropriate timezone value and changes it to local time. Therefore the value is wrong. With
clock -uwthe CMOS clock receives its settings from the system clock.
Attention: always choose Unix Single User Mode in the settings, in order to avoid problems with programs like make, rcs.
Further information in man clock.