Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Millennium problem

Posted on 1998-10-10
1
Medium Priority
?
274 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
dunnaway earned 400 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is about my first experience with programming Arduino.
Arrow Electronics was searching for a KVM  (Keyboard/Video/Mouse) switch that could display on one single monitor the current status of all units being tested on the rack.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

721 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