[comp.os.minix] AT&T PC6300 Real-time clock

HELMER%SDNET.BITNET@cunyvm.cuny.edu (Guy Helmer) (09/13/88)

Does anyone have a program for MINIX that will read the real-time clock
on the AT&T PC6300 and then set the MINIX time and date?  I know similar
programs are out there to read the AT's clock and the clock on the AST
6-Pack, but the AT&T's clock seems radically different.  Any comments or
source code would be appreciated.  Thanks.

Guy Helmer
South Dakota Tech
BITNET: HELMER@SDNET

csd@drutx.ATT.COM (Scott Davis) (09/15/88)

In article <4045@louie.udel.EDU>, HELMER%SDNET.BITNET@cunyvm.cuny.edu (Guy Helmer) writes:
> Does anyone have a program for MINIX that will read the real-time clock
> on the AT&T PC6300 and then set the MINIX time and date?  I know similar
> programs are out there to read the AT's clock and the clock on the AST
> 6-Pack, but the AT&T's clock seems radically different.  Any comments or
> source code would be appreciated.  Thanks.
> 
> Guy Helmer
> South Dakota Tech
> BITNET: HELMER@SDNET

----------------------------------------
What about just using 'date' from the command line to read the date and
time? I don't know if MINIX has anything to strip out the time if you
don't need it in this form. To set the date log in as su, issue the
command 'date -q' and answer the question. If the battery for your
clock is good, the time should be retained.

If you need to get at the date from within a program, I don't know. I
have tried to use the system calls 'time' and 'stime' from C as supplied
with MINIX with no luck. It appears whatever they access and change
count up to 64k and that's it. 'stime' also appears to interact somehow
with something else that is keeping time as file creation dates get
messed up after trying to use it.

Scott Davis   ...!ihnp4!drutx!csd