• Please review our updated Terms and Rules here

Y2K RTC Date & Time

aplmak

Experienced Member
Joined
Feb 13, 2012
Messages
132
Location
United States
So user Svenska on this board was able to successfully create a little program he calls “ndate” to bring my Altos Xenix 3.2 into this century. At least until 2038… He spent hours and I cannot thank him enough!!! Very talented!!!

I have an issue though.. while he was in my system programming somehow he was able to set the RTC to the actual century as seen here in this first photo. So the entire system RTC and software clock were in 2022! But of course I had to tinker since there is a leap year issue.. and I ran the regular date command to set the date to a year when it had 29 days. At any rate I CANNOT bring the systems RTC back to this century in 2022!!! See the second photo!!

The program he compiled “ndate” works great but it only sets the software date.. not the RTC..

I’ve attached the standard Xenix 3.2 date command which only lets you specify a two digit year. Not sure if that helps.. there are

This is kinda driving me nutz… the system did have the software and real-time clock set to 2022…. I don’t know how it happened but it did… so I cannot find out how to get back in 2022 in the RTC..

The default date command has parameters to set the RTC but again it only allows you to do a two digit year which brings you to 1970.

date -c = Prints the current date from the real-time hardware clock

date -m = Sets the system software clock to the current hardware real-time clock

Anyone have any ideas on how “we” managed to set the RTC originally to the correct date and time??? Maybe parameters need to be added into “ndate” that he created???
 

Attachments

  • 49BC08D2-EE80-4FE9-AC8E-AC67029A4132.jpeg
    49BC08D2-EE80-4FE9-AC8E-AC67029A4132.jpeg
    522.7 KB · Views: 9
  • 71F9D76D-37C0-4715-8D38-DF8035FF1053.jpeg
    71F9D76D-37C0-4715-8D38-DF8035FF1053.jpeg
    1.5 MB · Views: 10
  • 2AF68BB1-D425-4BFD-94AC-C229E85F3313.jpeg
    2AF68BB1-D425-4BFD-94AC-C229E85F3313.jpeg
    712.2 KB · Views: 8
  • 3E513D55-C02D-4DFE-A098-0F77C2B672AC.jpeg
    3E513D55-C02D-4DFE-A098-0F77C2B672AC.jpeg
    656.5 KB · Views: 10
Last edited:
So, the $64,000 question is what type of RTC device do you have on your board?

Manufacturer and the exact code printed on the device itself.

Dave
 
Dave give me a few and I’ll look at it and let you know. As I said it was set at one point and held 2022… so it was working but then I had to go back in and screw with it
 
I had to take pics in quadrants because it’s a big board!!! I know a RTC typically on a Mac is a small tiny chip but I couldn’t locate it.. here they are…
 

Attachments

  • FD1BFE17-4D85-4FE1-AE40-C900013DF2E9.jpeg
    FD1BFE17-4D85-4FE1-AE40-C900013DF2E9.jpeg
    1.2 MB · Views: 7
  • BF91B50A-4EC2-4AE9-A1CD-39701AA5E00C.jpeg
    BF91B50A-4EC2-4AE9-A1CD-39701AA5E00C.jpeg
    1.2 MB · Views: 6
  • 7DE2C7BB-787B-4646-9452-D66A3C8BFB85.jpeg
    7DE2C7BB-787B-4646-9452-D66A3C8BFB85.jpeg
    1.2 MB · Views: 5
  • 7DAF8698-5BDE-4C42-9A3B-CF2C744EE72A.jpeg
    7DAF8698-5BDE-4C42-9A3B-CF2C744EE72A.jpeg
    1.3 MB · Views: 4
  • 59FF5000-8E32-437A-9AFA-142323E15BF1.jpeg
    59FF5000-8E32-437A-9AFA-142323E15BF1.jpeg
    1.4 MB · Views: 4
  • AD5C774F-C66A-474E-BD21-F4B3231D1623.jpeg
    AD5C774F-C66A-474E-BD21-F4B3231D1623.jpeg
    1.3 MB · Views: 6
So it is an MM58167AN device.

This particular device doesn't contain a dedicated register for the year; but rather the software itself stores the year (or something equivalent) in the non volatile RAM of the device and updates it accordingly.

This is Xenix-specific, so let me do a bit of digging...

Dave
 
Dave thank you very much!!! Like I said Svenska compiled a program to update the software clock and it works!!! He loaded all the Xenix development utils and tools to his directory.. similar to the old “date”command can the “update hardware clock” argument be added to his “ndate
program” that he spent hours on?? He left the source code..

The software clock can be changed with his program.. just no way to tell the RTC. And the RTC should be able to handle 2022.. 😊

Thanks again!! 😊😊
 
I’ll PM it to you. I don’t really want to put it on the thread as I haven’t asked his permission even though I don’t think he’d care.. I’ll send it now.. stand by 😊
 
Back
Top