If you want a non-script version, my old Facts program writes the env-var too (although I think it only does the time, not the date).PJS wrote:Not being a TitleClock user, I can't say I know much about it.
But if one wanted to avoid disk access with each Date & Wait command call,
I suppose those two commands could be copied to T: and called from there?
Just add the two copies to the start of the script (ahead of the label)
and add the new path to the command calls.
I considered adding it to yFacts, but it means another more frequent event loop, so I decided against it. It's easy enough to do, though - just a timer event triggering every minute, a GetSysTime and then translate that to a proper time using Locale. I might write something if there's demand for it.
Running a Shell command on a loop doesn't seem to be a terribly efficient way of doing things. Even an ARexx script using the Time() function would be better.