sleep until, sleep until countdown
The program will sleep until a specific target date (and time) has been reached. 00:00:00 is assumed if no time is specified. This feature is useful to schedule tasks at fixed time intervals. Example: Scheduling database downloads every morning at 07:30, and the data is avaiable when you are in the office.
The ... countdown suffix will output the remaining time in following manner:
Time to go | Countdown output |
---|---|
More than 1 day | Waiting for xx days ... |
More than 1 hour | Waiting for xx hours ... |
More than 1 minute | Waiting for xx minutes ... |
Less than 1 minute | Waiting for xx seconds, ... counting down to "Waiting for 0 seconds", "Waiting done". |
1
No. | Type | Description |
---|---|---|
1 input |
date | Target date / time Sleeping takes place until specified date and time has been reached |
2 input |
string | Prompt Prompts a message that sleeping is in progress |
sleep countdown (3, "Waiting ");
Software will display a down-counting number on the same row