Hi Steffen,

>         \if [ $s == 42 ]
>            \echo 'Second 42, sleeping a second'
>            \sleep 1
>            \xcall on-compose-leave
>         \end
>         \if [ $m == 42 ]
>            \vput vexpr res - 10#$s 60
>            \vput vexpr res - 0 $res
>            \echo 'Minute 42, sleeping '$res' seconds'
>            \sleep $res
>            \xcall on-compose-leave
>         \end

Strictly speaking, these need to loop as the sleep may last longer than
planned.  Even then, there's a race condition between the test and the
execution.

I think some timezones can be 30 minutes off the hour so it may still be
42 minutes from the recipient's point of view?  Is avoiding the 42nd
ordinal day of the year left as an exercise for the reader?  :-)

-- 
Cheers, Ralph.

Reply via email to