0

Heya all,

Is there a way to get the date and time that is set in the Cmos and not the date and time which is set in Windows. My Windows date and time is usually wrong.

Thanks!

5
Contributors
6
Replies
7
Views
12 Years
Discussion Span
Last Post by mmiikkee12
0

Thanks for the reply :->

The date and time is different in the Cmos than to Windows date and time. If you were to double click on the clock icon at the bottom of Windows desktop and set the date back say 10 days, java returns the date that is 10 days behind.

Thanks!

0

My educated guess is that Java wont be able to get the CMOS time. Java was made as a high level programming language and CMOS should be out of the scope of java (not 100% sure). If you wanted to do something like that i'd try to do it with C or something like that.

0

Hi everyone,

If i am not wrong the Date class in java actually uses some C/C++ code to actually access the cmos date. So basically by using the java Date class you are actually already accessing the cmos date.

Richard West

0

But the Windows date/time comes from the CMOS! If you set the Windows date back 10 days, it will do it in the CMOS too.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.