Unix and Linux Discussions Tagged with timestamp |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
0 |
12,913 |
Programming |
|
|
|
6 |
5,078 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
2,208 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,250 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
3,390 |
UNIX for Advanced & Expert Users |
|
|
|
14 |
6,375 |
Shell Programming and Scripting |
|
|
|
1 |
1,243 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
4,580 |
Shell Programming and Scripting |
|
|
|
23 |
9,471 |
Shell Programming and Scripting |
|
|
|
12 |
7,232 |
Solaris |
|
|
|
3 |
2,541 |
Shell Programming and Scripting |
|
|
|
7 |
6,416 |
Shell Programming and Scripting |
|
|
|
7 |
7,518 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,622 |
Shell Programming and Scripting |
|
|
|
4 |
6,323 |
Shell Programming and Scripting |
|
|
|
2 |
4,416 |
UNIX for Advanced & Expert Users |
|
|
|
8 |
4,813 |
Shell Programming and Scripting |
|
|
|
2 |
17,536 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,134 |
Red Hat |
|
|
|
4 |
6,604 |
Solaris |
|
|
|
3 |
2,574 |
Shell Programming and Scripting |
|
|
|
1 |
2,230 |
Shell Programming and Scripting |
|
|
|
4 |
7,326 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
9,349 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
2,720 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
12,689 |
Shell Programming and Scripting |
|
|
|
5 |
8,599 |
Shell Programming and Scripting |
|
|
|
8 |
12,920 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,601 |
Shell Programming and Scripting |
|
|
|
18 |
21,673 |
Solaris |
|
|
|
7 |
27,820 |
Shell Programming and Scripting |
|
|
|
1 |
2,429 |
Shell Programming and Scripting |
|
|
|
1 |
3,893 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
9,461 |
AIX |
|
|
|
5 |
7,178 |
Shell Programming and Scripting |
|
|
|
12 |
48,909 |
UNIX for Dummies Questions & Answers |
|
|
|
17 |
15,688 |
Shell Programming and Scripting |
|
|
|
1 |
20,834 |
Shell Programming and Scripting |
|
|
|
3 |
5,318 |
Shell Programming and Scripting |
|
|
|
2 |
89,491 |
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)