Solved

Millennium problem

Posted on 1998-10-10
1
265 Views
Last Modified: 2010-04-26
L.S,

What is a good way to check whether my computer is millennium-proof or not?
Regarding DOS, CMOS and Windows 95 OSR 2.

Thanks for a reply!

A. Tanis
0
Comment
Question by:atanis
1 Comment
 
LVL 1

Accepted Solution

by:
dunnaway earned 100 total points
ID: 1011303
Found this at http://www.adppro.com/cmosy2k.htm

The Standard PC maintains two system dates; one is in the CMOS Real Time Clock (RTC) chip - a hardware component that is normally on the machine's motherboard; and the other one is in the DOS (and Windows) operating system software. These two dates are represented differently. The CMOS RTC date is kept as century/two-digit-year/month/day and the DOS date is kept as days since 1980/01/01 which is convered to four-digit year/month/day when called by any program.When DOS boots, it normally initializes its current date by reading the date in the CMOS RTC and converting it to days-since-1980/01/01. DOS maintains its date as long as the system is running; the CMOS RTC hardware maintains its date whether the system is runing or not (that's one of the reasons for the little battery on the motherboard), but it does not
maintain the century. In the CMOS RTC, year 99 overflows into 00 and the century remains unchanged so the effective year becomes 1900; in DOS year 1999 overflows to 2000. So, until the system is rebooted, there will appear to be no problem with the transition from year 1999 to 2000; but trouble lurks in the the CMOS RTC, which has become year, you guessed it, 1900. When DOS boots, it reads 1900 as an out-of-range date from the CMOS RTC and the date conversion algorithm calculates an erroneous
1980-01-04. That is what the DOS date will become after rebooting the system after the year 2000 transition if the CMOS RTC exhibits the flaw.

Now for the test: To determine if your system suffers the year 2000 CMOS RTC flaw, from a DOS prompt:

         Power off test:
         set the date and time to

              C:>DATE 12-31-1999

              C:>TIME 23:59

         Power off the system, wait for more than one minute.

         Power on the system. Allow system to boot.

         Check the DOS date:

             It should read 01-01-2000. If it reads 01-04-1980 your machine has the flaw.

         Power on test:

         set the date and time to

              C:>DATE 12-31-99

              C:>TIME 23:59

         Wait for more than one minute.

         Check that the DOS year has changed to 2000.

         Reboot. The DOS year should still be 2000, if not, your machine has the flaw.


Hope this helps
dunnaway
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I recently purchased an HP EliteBook 2540p notebook/laptop. It has two video ports on it – VGA and DisplayPort. HP offers an optional docking station for the 2540p that also has both a VGA port and a DisplayPort. There are numerous online reports do…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now