Ok, Knownot wants programming discussion, Zen wants to let his security staff (himself) sleep - so we get this:

RealTime definitions subroutine for the Real World IF:

If we're in normal working hours;
andif someone's within earshot;
then it's NOW;

elif we're after business hours;
orif everyone's too lazy to answer the alarm in a timely fashion;
then it's logged;
endif;
endif;
rem Easy fix :þ

For Gore the Bastard SysAdmin from Michigan, see my PM since it's off topic