TimeWait

Pauses execution and waits for the datetime to pass.

Syntax:

TimeWait (datetime)

Parameters:

(s) datetime use format YYYY:MM:DD:HH:MM:SS.

Returns:

(i) always 1.

 

Use this function to pause execution to wait for the datetime to pass.

To wait for the next occurrence of the specified time, (i.e., today or tomorrow), specify "0000:00:00:H:M:S" for the date.

Example:


a=TimeYmdHms( ) ; Gets Current Time
b=TimeAdd(a,"0000:00:00:00:00:07") ; Adds 7 seconds to current time
TimeWait(b) ; Waits for that time to occur
Display(3, "Time now should be", b)
See Also:

FileTimeGet, FileTimeGetEx, TimeDate, TimeAdd, TimeDiffDays, TimeDiffSecs, TimeYmdHms, TimeDelay