Files
freeCodeCamp/guide/chinese/php/functions/time/index.md
2018-10-16 21:32:40 +05:30

24 lines
349 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Time
localeTitle: 时间
---
## 时间
`time()`函数返回当前的unix时间戳自Unix Epoch以来的秒数 - 1970年1月1日00:00:00 GMT
### 例
```php
<?php
echo time();
```
**输出:**
```text
1511732226
```
#### 更多信息:
* [php.net time手册](https://secure.php.net/manual/en/function.time.php)