v17 Check if SystemTime is in range between two strings
#1
Hi @ all,

Here is the situation:

i want to relase a mode which is only active on a special time range. I have two skin strings which reflects start and stop time as hh:mm.
How can i check if system time (System.Time(hh:mm) is in range between the two strings ?

Any ideas? Help would be fantastic !
Reply
#2
Code:
System.Time(startTime,endTime)

Quote:Returns true if the current system time is >= startTime and < endTime. endTime is optional. Time must be specified in the format HH:mm, using a 24 hour clock.
Reply
#3
(2016-12-09, 08:34)Hitcher Wrote:
Code:
System.Time(startTime,endTime)

Quote:Returns true if the current system time is >= startTime and < endTime. endTime is optional. Time must be specified in the format HH:mm, using a 24 hour clock.

I have tried this before posting but not working...

Code:
<visible>!System.Time($INFO[Skin.String(DayStart)],$INFO[Skin.String(DayStop)])</visible>

Causes "error in boolean condition" in log

Code:
<visible>!System.Time(Skin.String(DayStart),Skin.String(DayStop))</visible>

No error in log but not working....

Any idea ?

PS: time in strings is formated as 08:00 and 18:00 for example...
Reply

Logout Mark Read Team Forum Stats Members Help
Check if SystemTime is in range between two strings0