pete@octopus.UUCP (Pete Holzmann) (09/13/88)
A while back I asked for help with DOS3.3; it rolls over the time at midnight, but not the date. Nobody had an answer even though I'm *sure* I saw a solution a long time ago... Now I've dug up a partial answer. Maybe this will help job somebody's memory. 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... Thanks! Pete -- OOO __| ___ Peter Holzmann, Octopus Enterprises OOOOOOO___/ _______ USPS: 19611 La Mar Court, Cupertino, CA 95014 OOOOO \___/ UUCP: {hpda,pyramid}!octopus!pete ___| \_____ Phone: 408/996-7746
spolsky-avram@CS.YALE.EDU (Joel Spolsky) (09/14/88)
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!!