Path: utzoo!attcan!telly!lethe!torsqnt!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!apple!oliveb!pyramid!ctnews!mitisft!dold From: dold@mitisft.Convergent.COM (Clarence Dold) Newsgroups: comp.sys.ibm.pc Subject: Re: set system clock? Message-ID: <1233@mitisft.Convergent.COM> Date: 21 Sep 89 15:05:16 GMT References: <19500034@uxh.cso.uiuc.edu> Organization: Convergent Technologies, San Jose, CA Lines: 21 in article <19500034@uxh.cso.uiuc.edu>, beaucham@uxh.cso.uiuc.edu says: > The TIME command allows me to reset it for DOS (3.0) so as long as I leave > the machine on I'm o.k., but when I turn it off, it comes back up with the > same crummy incorrect time. What's the trick to setting the actual hardware > system clock? The DOS manual says consult your GTO. What's a GTO? Starting with DOS 3.3, INT21 AH=0x2E sets the time, and also adjusts the CMOS clock. I would assume that TIME uses these INTs. Aside from that, I have written a short program called udate that accepts a UNIX style command line to set the time and date, using both the RTC calls and INT21, so it should work on earlier DOS. I could mail it or post it (?). A '68 GTO was a great machine, that had slightly more power than the original IBM PC. I think it was built by Pontiac. :-) :-) -- --- Clarence A Dold - dold@tsmiti.Convergent.COM (408) 434-5293 ...pyramid!ctnews!tsmiti!dold P.O.Box 6685, San Jose, CA 95150-6685 MS#10-007