1 | .TH READCLOCK 8
|
---|
2 | .SH NAME
|
---|
3 | readclock \- read the AT's real time clock
|
---|
4 | .SH SYNOPSIS
|
---|
5 | \fBreadclock\fP [\fB\-nwW2\fP]
|
---|
6 | .SH DESCRIPTION
|
---|
7 | .B Readclock
|
---|
8 | reads the AT's real time clock and sets the machine's time. It is usually
|
---|
9 | the second thing done in
|
---|
10 | .BR /etc/rc ,
|
---|
11 | the first thing is setting the time zone by sourcing
|
---|
12 | .BR /etc/profile .
|
---|
13 | This means that the clock is assumed to tell the wall clock time. If you
|
---|
14 | want to run the clock in GMT then you can put
|
---|
15 | .B "TZ=GMT"
|
---|
16 | (or any other TZ value) in front of the readclock command.
|
---|
17 | .SH OPTIONS
|
---|
18 | .TP
|
---|
19 | .B \-n
|
---|
20 | Play-act, don't set the time nor change the calibration data, just show what
|
---|
21 | would be done.
|
---|
22 | .TP
|
---|
23 | .B \-w
|
---|
24 | Write the current time to the CMOS clock. Dangerous, see
|
---|
25 | .BR BUGS .
|
---|
26 | Don't forget to use
|
---|
27 | .B "TZ=GMT"
|
---|
28 | in front of readclock if the clock should run in GMT.
|
---|
29 | .TP
|
---|
30 | .B \-W
|
---|
31 | Like
|
---|
32 | .BR \-w ,
|
---|
33 | but also sets the status registers of the CMOS clock to their proper values.
|
---|
34 | (For if the clock suddenly runs at an odd pace or has stopped and the BIOS
|
---|
35 | doesn't repair it.)
|
---|
36 | .TP
|
---|
37 | .BR \-2 ,
|
---|
38 | Add 20 to any year before 2000. If your CMOS clock year can't run past 2000,
|
---|
39 | then you can set it to 1980 and use
|
---|
40 | .B \-2
|
---|
41 | to correct the year. Together with
|
---|
42 | .B \-w
|
---|
43 | the year minus 20 is written to the clock.
|
---|
44 | .SH FILES
|
---|
45 | .TP 20n
|
---|
46 | /etc/profile
|
---|
47 | Timezone and other shell initialization code.
|
---|
48 | .SH "SEE ALSO"
|
---|
49 | .BR date (1),
|
---|
50 | .BR utime (1).
|
---|
51 | .SH BUGS
|
---|
52 | Reported to not work on some AT's.
|
---|
53 | .PP
|
---|
54 | May mess up the clock royally when setting it
|
---|
55 | .RB ( \-w ).
|
---|
56 | Only if you have a very standard AT and you are not afraid of having your
|
---|
57 | CMOS setup reset to the default with a "checksum error" should you use
|
---|
58 | .BR readclock
|
---|
59 | to set the time of the CMOS clock. You have been warned.
|
---|
60 | .SH AUTHOR
|
---|
61 | Kees J. Bot (kjb@cs.vu.nl)
|
---|