User Tools

Site Tools


waituntiltime

Table of Contents

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

bool: WaitUntilTime(string timeString='hh:mm:ss')

Examples

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
waituntiltime.txt · Last modified: 2016/09/05 18:31 by act