If I remember correctly there may be some cases where $TIME$ does not
work correctly in the Run-If (I think a patch fixed it but I can't
remember which one).

Try the following

( ((( $TIMESTAMP$ - "1/1/1970") % 86400) >= (6 * 3600))   
  AND   
  ((( $TIMESTAMP$ - "1/1/1970" ) % 86400) < (18 * 3600)) ) 


Description of above qualification: (This gives you >= 6:00 AM and <
6:00 PM)   
   Subtract off the start of time (for TimeStamps) to convert TIMESTAMP
to an integer (if you don't do this ARS tries to work with TIMESTAMP as
a string).  Use the Modulus "%" (remainder after division) of number of
seconds in a day (86400) to get the number of seconds since Midnight.  


Fred
 

-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Elinore AR
Sent: Monday, January 07, 2008 11:39 PM
To: [email protected]
Subject: Re: need help to figure out $TIME$!

hi patrick,

i do not have probs with testing time from 6PM-6AM as it this works
perfectly:

( ($TIME$ >= (60 * 60 * 18) ) OR ( $TIME$ < (60 * 60 * 6)) )

however, for 6AM-6PM, this one doesn't work:

( ($TIME$ >= (60 * 60 * 6)) AND ($TIME$ < (60 * 60 * 18)) )

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

Reply via email to