freeCodeCamp/guide/portuguese/php/functions/time/index.md

24 lines
370 B
Markdown
Raw Normal View History

---
title: Time
localeTitle: Tempo
---
## Tempo
A função `time()` retorna o timestamp unix atual (número de segundos desde o Unix Epoch - 1 de janeiro de 1970 00:00:00 GMT).
### Exemplo
```php
<?php
echo time();
```
**Saída:**
```text
1511732226
```
#### Mais Informações:
* [php.net time () manual](https://secure.php.net/manual/en/function.time.php)