Unix and Linux Discussions Tagged with timestamp |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
0 |
14,016 |
Programming |
|
|
|
6 |
5,411 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
2,333 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,380 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
3,567 |
UNIX for Advanced & Expert Users |
|
|
|
14 |
6,566 |
Shell Programming and Scripting |
|
|
|
1 |
1,313 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
4,899 |
Shell Programming and Scripting |
|
|
|
23 |
9,697 |
Shell Programming and Scripting |
|
|
|
12 |
7,621 |
Solaris |
|
|
|
3 |
2,585 |
Shell Programming and Scripting |
|
|
|
7 |
6,620 |
Shell Programming and Scripting |
|
|
|
7 |
7,698 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,672 |
Shell Programming and Scripting |
|
|
|
4 |
6,376 |
Shell Programming and Scripting |
|
|
|
2 |
4,490 |
UNIX for Advanced & Expert Users |
|
|
|
8 |
4,928 |
Shell Programming and Scripting |
|
|
|
2 |
17,594 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,200 |
Red Hat |
|
|
|
4 |
6,667 |
Solaris |
|
|
|
3 |
2,611 |
Shell Programming and Scripting |
|
|
|
1 |
2,274 |
Shell Programming and Scripting |
|
|
|
4 |
7,512 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
9,400 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
2,766 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
12,845 |
Shell Programming and Scripting |
|
|
|
5 |
8,677 |
Shell Programming and Scripting |
|
|
|
8 |
12,999 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,707 |
Shell Programming and Scripting |
|
|
|
18 |
21,835 |
Solaris |
|
|
|
7 |
28,029 |
Shell Programming and Scripting |
|
|
|
1 |
2,452 |
Shell Programming and Scripting |
|
|
|
1 |
3,991 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
9,538 |
AIX |
|
|
|
5 |
7,264 |
Shell Programming and Scripting |
|
|
|
12 |
49,059 |
UNIX for Dummies Questions & Answers |
|
|
|
17 |
15,926 |
Shell Programming and Scripting |
|
|
|
1 |
21,044 |
Shell Programming and Scripting |
|
|
|
3 |
5,351 |
Shell Programming and Scripting |
|
|
|
2 |
89,576 |
Shell Programming and Scripting |
TIME_SLEEP_UNTIL(3) 1 TIME_SLEEP_UNTIL(3)
time_sleep_until - Make the script sleep until the specified time
SYNOPSIS
bool time_sleep_until (float $timestamp)
DESCRIPTION
Makes the script sleep until the specified $timestamp.
PARAMETERS
o $timestamp
- The timestamp when the script should wake.
RETURN VALUES
Returns 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.
EXAMPLES
Example #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));
?>
NOTES
Note
All signals will be delivered after the script wakes up.
SEE ALSO
sleep(3), usleep(3), time_nanosleep(3), set_time_limit(3).
PHP Documentation Group TIME_SLEEP_UNTIL(3)