Welcome, Guest. Please login or register.

Author Topic: Date/Time on Amiga 4000 (OS 3.1.4) without battery-backed clock  (Read 6577 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Orphan264Topic starter

My Amiga 4000 (D) does not have a battery for the time/date circuit. Normally I use RoadShow (TCP/IP) and an NTP client to update the date and time when the computer boots. However I have not had success using NetShutDown to terminate RoadShow after booting so I am exploring an alternate boot process that skips RoadShow and NTP.

What FILE/FOLDER does OS 3.1.4 use to determine the date/time if there is no battery?

I thought it might be the "most recent file on the boot volume" but that is not the case. I tried.

I want to be able to update this File/Folder with the current actual time/date and then reboot and the clock will get VERY CLOSE to the real time from this file.
 

Offline Orphan264Topic starter

Re: Date/Time on Amiga 4000 (OS 3.1.4) without battery-backed clock
« Reply #1 on: March 12, 2019, 02:41:15 PM »
Thanks for the answer - I AM using FFS.

I am guessing that the "last modified" date of the root directory of my boot volume is not something that can be updated without re-creating it.  I will work on another way.

I appreciate the help!
 

Offline Orphan264Topic starter

Re: Date/Time on Amiga 4000 (OS 3.1.4) without battery-backed clock
« Reply #2 on: March 12, 2019, 05:01:10 PM »
The only way to update the system time is to relabel the volume.

It seems you are correct. I tried modifying a file in the root directory of the volume and it did not work. :(

Don't think I will be relabeling my System: volume just to solve this problem. Thanks.
 

Offline Orphan264Topic starter

Re: Date/Time on Amiga 4000 (OS 3.1.4) without battery-backed clock
« Reply #3 on: March 12, 2019, 06:12:14 PM »
I also keep recommending http://aminet.net/package/util/time/TimeKeeper


Thanks for the recommendation, sounds like what I need.
 

Offline Orphan264Topic starter

Re: Date/Time on Amiga 4000 (OS 3.1.4) without battery-backed clock
« Reply #4 on: March 13, 2019, 01:25:30 PM »
Just out of curiosity, why not just keep the network up and stay with the NTP syncing?

WHDLoad - Games don't work with the TCP/IP stack loaded. :(

I have tried using NetShutDown in the WHDLStartup script, but it never returns after being called - to me it seems the process gets locked.
 

Offline Orphan264Topic starter

Re: Date/Time on Amiga 4000 (OS 3.1.4) without battery-backed clock
« Reply #5 on: March 13, 2019, 01:27:50 PM »
I'm not sure that would be right as the OP's machine does have a clock presumably, but his battery is missing. If so, then it will remember the time between reboots anyway (if he sets it with setclock or time prefs first of course).


Perhaps it is more correct to say - the clock circuit does not work after being ruined by a leaky battery many years ago. Setclock fails on my machine.
 

Offline Orphan264Topic starter

Re: Date/Time on Amiga 4000 (OS 3.1.4) without battery-backed clock
« Reply #6 on: March 13, 2019, 04:17:33 PM »
NetShutdown requires that there are no active network connections.

Thanks, Thomas. I was already aware of this. However, even when I load no such TCP/IP processes, NetShutDown still does not work for me. :(