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

19 lines
348 B
Markdown
Raw Normal View History

2018-10-12 19:37:13 +00:00
---
title: Time
---
## Time
The `time()` function returns the current unix timestamp (number of seconds since the Unix Epoch - January 1 1970 00:00:00 GMT).
### Example
```php
<?php
echo time();
```
**Output:**
```text
1511732226
```
#### More Information:
* <a href="https://secure.php.net/manual/en/function.time.php">php.net time() manual</a>