Query: time_sleep_until
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
TIME_SLEEP_UNTIL(3) 1 TIME_SLEEP_UNTIL(3) time_sleep_until - Make the script sleep until the specified timeSYNOPSISbool time_sleep_until (float $timestamp)DESCRIPTIONMakes the script sleep until the specified $timestamp.PARAMETERSo $timestamp - The timestamp when the script should wake.RETURN VALUESReturns TRUE on success or FALSE on failure.CHANGELOG+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.3.0 | | | | | | | This function is now available on Windows plat- | | | forms. | | | | +--------+---------------------------------------------------+ERRORS/EXCEPTIONS If the specified $timestamp is in the past, this function will generate a E_WARNING.EXAMPLESExample #1 A time_sleep_until(3) example <?php //returns false and generates a warning var_dump(time_sleep_until(time()-1)); // may only work on faster computers, will sleep up to 0.2 seconds var_dump(time_sleep_until(microtime(true)+0.2)); ?>NOTESNote All signals will be delivered after the script wakes up.SEE ALSOsleep(3), usleep(3), time_nanosleep(3), set_time_limit(3). PHP Documentation Group TIME_SLEEP_UNTIL(3)
Related Man Pages |
---|
idate(3) - php |
date_sunset(3) - php |
is_dir(3) - php |
is_float(3) - php |
time_sleep_until(3) - php |
Similar Topics in the Unix Linux Community |
---|
Get timestamp by 'YYYYMMDD' |
script to check for existence of file (or else sleep for x time) |
FTP search ,grep using perl |
Print character after pattern found |
Send sleep to background |