PHP » PYTHON |
login |
register |
about
|
PYTHON time_sleep_until
is this article helpful?
|
Python replacement for PHP's time_sleep_until
[
edit
| history
]
import time time.sleep(timestamp - time.time()) time_sleep_until(PHP 5 >= 5.1.0) time_sleep_until — Make the script sleep until the specified time Description
bool time_sleep_until
( float $timestamp
)
Makes the script sleep until the specified timestamp . Parameters
Return ValuesReturns TRUE on success or FALSE on failure. Changelog
Errors/ExceptionsIf the specified timestamp is in the past, this function will generate a E_WARNING. Examples
Example #1 A time_sleep_until() example
<?php
Notes
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|