função PHP gettimeofday ()
PHP Data / Hora Manual de Referência
Exemplos
Retorna o tempo atual:
<?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);
?>
Correndo instância »
Definição e Uso
função gettimeofday () retorna a hora atual.
gramática
gettimeofday( return_float);
参数 | 描述 |
---|---|
return_float | 可选。当设置为 TRUE 时,返回一个浮点数,而不是一个数组。默认是 FALSE。 |
detalhes técnicos
retorna: | Padrão retorna uma matriz associativa, a matriz com as seguintes chaves: R
|
---|---|
versão do PHP: | 4+ |
log Update: | PHP 5.1.0: Adicionado return_float parâmetros. |
PHP Data / Hora Manual de Referência