fonction gettimeofday () de PHP
PHP Date / Heure Manuel de référence
Exemples
Renvoie l'heure actuelle:
<?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);
?>
Exécution instance »
Définition et utilisation
fonction gettimeofday () renvoie l'heure actuelle.
grammaire
gettimeofday( return_float);
参数 | 描述 |
---|---|
return_float | 可选。当设置为 TRUE 时,返回一个浮点数,而不是一个数组。默认是 FALSE。 |
détails techniques
Retours: | Par défaut retourne un tableau associatif, le tableau avec les touches suivantes: R
|
---|---|
PHP version: | 4+ |
Mise à jour de journal: | PHP 5.1.0: Ajouté return_float paramètres. |
PHP Date / Heure Manuel de référence