Seeking help with a time calculation
From
Kenny McCormack@21:1/5 to
All on Fri Nov 29 17:10:57 2024
Platform is Linux.
In an Expect script, I want to calculate the number of seconds until the
next "X minutes after the hour". E.g., if X is 37 and the current time is 15:30:30, then the result I seek would be: 390. If X is 37, and the
current time is 15:50, then the result would be: 2820.
It's the number of seconds I have to wait (sleep) until that time arrives.
I have a method in AWK, which I can (and do) call from my Expect script,
but I am curious if there is a (simple) native Tcl way to do it.
--
Men rarely (if ever) manage to dream up a God superior to themselves.
Most Gods have the manners and morals of a spoiled child.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)