PHP gettimeofday () Funktion
PHP Datum / Zeit - Referenzhandbuch
Beispiele
Gibt die aktuelle Uhrzeit:
<?php
// Print the array from gettimeofday()
print_r(gettimeofday());
// Print the float from gettimeofday()
echo gettimeofday(true);
?>
// Print the array from gettimeofday()
print_r(gettimeofday());
// Print the float from gettimeofday()
echo gettimeofday(true);
?>
Ausführung einer Instanz »
Definition und Verwendung
gettimeofday () Funktion gibt die aktuelle Uhrzeit an.
Grammatik
gettimeofday( return_float);
参数 | 描述 |
---|---|
return_float | 可选。当设置为 TRUE 时,返回一个浮点数,而不是一个数组。默认是 FALSE。 |
Technische Details
Rückkehr: | Standard gibt ein assoziatives Array, das Array mit den folgenden Tasten: R
|
---|---|
PHP-Version: | 4+ |
Update-Protokoll: | PHP 5.1.0: Added return_float Parameter. |
PHP Datum / Zeit - Referenzhandbuch