CompuServe Messages

Setting System Time?

    10-Sep-94 04:22:51
Sb: Setting System Time?
Fm: Martin Kay 100046,3675
To: All
Help! Does anyone have, or know of, some code fragments to set the system Time-of-Day clock (as opposed to the Battery-Backed clock)? I have a need to synchronize the Amiga system time to an external clock source. I can do it by re-setting the BattClock chip (via Resources & Utility.library) and then executing "SetClock Load", but that's not as neat as I'd like it. I can't find anything in all my Amiga docs about setting the system time, nor in the AmigaTech library here on CIS. What I need is a routine (in C or Asm) to take a time value (which I can supply in any suitable form) and do whatever "Date" and "SetClock" do in order to set the System Time. All info/advice appreciated Martin Kay