SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
IsTimeBetween problem

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
IsTimeBetween problem
Author Message
Pierre Dupuis



Joined: 22 Aug 2000
Posts: 85

Post IsTimeBetween problem Reply with quote

Version 2.4.10

I have problem with IsTimeBetween fuction. See example
below. Why ret = false ???

Dim tnow, Time
Dim ret, boolean
MakeTime( 23, 00, 00, tnow )
IsTimeBetween( tnow, 21:00, 7:00, ret )

Thanks.

Wed Jun 27, 2001 9:16 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7841

Post Re: IsTimeBetween problem Reply with quote

The specified time range is invalid (backward). The rule is "tnow >= 21:00 AND tnow = 21:00:00 AND tnow = 00:00:00 AND tnow <= 7:00:00)"

Here is how you can do it

Dim tnow, Time
Dim ret, boolean
MakeTime( 23, 00, 00, tnow )
IsTimeBetween( tnow, 21:00, 24:59:59, ret )
IfThen(ret, SOME_LABEL)
IsTimeBetween( tnow, 00:00, 7:00, ret )
IfThen(ret, SOME_LABEL)

: Version 2.4.10

: I have problem with IsTimeBetween fuction. See example
: below. Why ret = false ???

: Dim tnow, Time
: Dim ret, boolean
: MakeTime( 23, 00, 00, tnow )
: IsTimeBetween( tnow, 21:00, 7:00, ret )

: Thanks.

Wed Jun 27, 2001 11:52 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.