Subj : Remote - Local Time synchro To : Jasen Betts From : Gerald Miller Date : Fri Jul 19 2002 06:30 pm Hello Jasen, On Friday July 19 2002 at 07:43, Jasen Betts [3:640/531.42] wrote to Gerald Miller, about: Remote - Local Time synchro GM>> Remote Time is: [61205] 17:00:05 GM>> LOCAL Time is: [61230] 17:00:30 GM>> The Remote site is SLOWER by: 00:00:25 GM>> Action is: - (subtraction) of: 00:00:25 from current GM>> LOCAL time... Do you wish to make an adjustment? GM>> Now, I have to decide how the adjustments are to be made GM>> and if I should let an "X" number of seconds #_slide_by_# GM>> before any notification of adjustments..... ??? GM>> Suggestions ??? JB> I'd just put a message in the log file and change the system JB> time (unless the mailer event was less than the time taken) I #think# that is the method that FrontDoor uses to synch systems and it's unavailable to me.... When the event is running (making the connection, the "handshake", the file exchanges...) the log file is locked (in use) by 'Frodo'..... :)) JB> Still a delay of 5 seconds isn't going to be a big problem JB> either. you may want to ignore differences of greater than a JB> certain amount (if the remote end sets their clock JB> wrong....) If I am within fifteen seconds (either way) of my Host, then the time is acceptable. JB> if you want you could use inkey to delay and if the use JB> doesn't say no include the inkey delay could be the JB> synchronisation delay. This sounds appealing... Would you provide an example? JB> most times you'll probably only have to adjust by a few JB> seconds (if you only get 1 second difference probably you JB> should ignore it because it could really be less than one JB> second) It's a math problem...... Take the CASE of "Y": inkey /k"ynq[Enter]" /w60 Do you wish to make an adjustment? %%reply switch %reply ...... case y unset /q reply %+ ( iff "%act"==" + (addition)" then %+ set today=%@eval[%@date[%_date]*86400 + %@time[%_time]] set now=%@eval[%today + %@time[%amount]] set newtime=%@maketime[%@eval[%now %% 86400]] time %newtime echo Revised time is: %_time else set today=%@eval[%@date[%_date]*86400 + %@time[%_time]] set now=%@eval[%today - %@time[%amount]] set newtime=%@maketime[%@eval[%now %% 86400]] time %newtime echo Revised time is: %_time endiff ) This doesn't work, yet I can't see where my error is.... Cheers ... Gerald --- GoldED+/386 v1.1.5-20617 # Origin: As the Iron Curtain rusts. (1:342/512) * Origin: Baddog BBS (1:218/903) .