I have a script that does something at an exact time, every hour and half hour of the clock. What I have is
alias hourclock { if ($asctime(nn:ss) == 00:00) || ($asctime(nn:ss) == 30:00) { msg #time It is now $asctime(dddd mmmm dd yyyy hh:nn:ss tt) -0500 UTC (EST). (24 hour time is $asctime(HH:nn:ss) $+ ). Go to #time for time. } }
and I do a /timer 0 1 hourclock
Well, it works most of the time, and when I say most, I mean that it doesn't work like once in 5 days. It is also inherently inaccurate. The timer checks every 1 second, so there is a maximum error of 1 second. I want the script to execute at the very beginning of the second. I observe that it sometimes happen between the 0th second and the 1st second. That is the nature of this script. So how do I make it so it happens at the exact start of the second, aka when the second hand is exactly on 12.