Path: utzoo!attcan!uunet!yale!spolsky-avram From: spolsky-avram@CS.YALE.EDU (Joel Spolsky) Newsgroups: comp.sys.ibm.pc Subject: Re: Looking for TSR to fix date when 40:70 is set Message-ID: <37739@yale-celray.yale.UUCP> Date: 13 Sep 88 23:40:36 GMT References: <350@octopus.UUCP> Sender: root@yale.UUCP Reply-To: spolsky-avram@CS.YALE.EDU (Joel Spolsky) Organization: Yale University Computer Science Dept, New Haven CT 06520-2158 Lines: 27 In article <350@octopus.UUCP> pete@octopus.UUCP (Pete Holzmann) writes: | A while back I asked for help with DOS3.3; it rolls over the time | at midnight, but not the date. | | When the time rolls over from 23:59:59 to 24:00:00, DOS clear the time | (at locations 40:6C and 40:6E) and sets 40:70 to one. The problem is | that nothing seems to examine 40:70 and change the date when it is | set! | | Thus, what is needed is something to change the date whenever 40:70 is | nonzero, and reset 40:70. Anybody have such a beast? I'd rather not | have to reinvent yet another wheel... | As I understand this, querying the time/date through the appropriate DOS interrupt will update the date if necessary. As long as you don't bypass DOS when you query the time/date the date should always be correct. The only problem is when your PC goes 24 hours, from midnight to midnight, without a single time-query (not even a single file operation) in which case the date will be off by one. Joel Spolsky bitnet: spolsky@yalecs uucp: ...!yale!spolsky Yale University arpa: spolsky@yale.edu voicenet: 203-436-1483 You can't expect to wield supreme executive power just 'cause some watery tart threw a sword at you!!