User Tools

Site Tools


waituntiltime

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

waituntiltime [2016/09/05 18:31] (current)
act created
Line 1: Line 1:
 +====== WaitUntilTime ======
 +The ''​WaitUntilTime''​ function waits (blocks) until the given time is reached. The function returns ''​false''​ if no arguments are passed. The format of the time string is '​hh:​mm:​ss'​ where '​hh'​ are the hours, '​mm'​ the minutes, and '​ss'​ the seconds (all in two digits format, e.g. 08:​01:​01). ​
  
 +==== Syntax ====
 +<​code>​
 +bool: WaitUntilTime(string timeString='​hh:​mm:​ss'​)
 +</​code>​
 +
 +==== Examples ====
 +<​code>​
 +var result = WaitUntilWeekday();​
 +// result: false
 +
 +var result = WaitUntilTime('​10:​11:​12'​);​
 +// waits until 10:11:12 am
 +
 +var result = WaitUntilTime('​13:​11:​12'​);​
 +// waits until 01:11:12 pm
 +</​code>​
waituntiltime.txt · Last modified: 2016/09/05 18:31 by act