函数定义
function strtotime ($time, $now = 'time()') {}
function date ($format, $timestamp = 'time()') {}
用法示例
<?php
// 获取10位时间戳
echo time();
// 1575116806
// 时间戳转字符串
echo date('Y-m-d H:i:s', time());
// 2019-11-30 20:26:23
// 字符串转时间戳
echo strtotime('2019-11-30 20:26:23');
// 1575116783