source: trunk/minix/man/man8/readclock.8@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

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