home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.ibm.pc.hardware
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!gumby!destroyer!ais.org!draper
- From: draper@ais.org (Patrick Draper)
- Subject: Re: Help needed to keep the TIME
- Message-ID: <BtKA1t.Myt@ais.org>
- Keywords: time, help
- Organization: UMCC
- References: <Alex.29.714747452@camp.wpic.pitt.edu> <francis.49.0@mpl.ucsd.edu>
- Date: Tue, 25 Aug 1992 22:49:00 GMT
- Lines: 27
-
- I'm confused by the whole PC clock issue. I *know* that the clock maintained
- y DOS is screwy. I have a program that displays the time and date on the
- screen. Every once in a while, the computer will lose it's mind and lose
- track of the correct date and/or time.
-
- What I did is re-write the function time() in the C standard library to read
- the hardware clock directly.
-
- So, sometimes, the display in my program will be entirely correct, but when
- I go to DOS, the date will be off into the next century or something like
- that.
-
- I know that it's not a hardware failure, because *all* of our computers do
- this every once in a while.
-
- Is the internal hardware clock quartz accurate? If not, why the heck can't
- it be that way? I can't believe that in order to be IBM compatible the
- mother board manufacturers even duplicated a clock that drifts around...
-
-
-
- ------------------////////////////////\\\\\\\\\\\\\\\\\\\\------------------
- | Patrick Draper Disclaimer: I can't control my fingers, |
- | draper@umcc.ais.org I can't control my toes! - Ramones |
- | University of Michigan |
- | Computer Club We are a nation of laws, not people |
- ------------------\\\\\\\\\\\\\\\\\\\\////////////////////------------------
-