AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
# humandate() ## humandate() ``` <pre class="calibre11">``` humandate($timestamp, $lan = array()) ``` ``` #### 【功能】 友好的显示日期。 #### 【参数】 ``` <pre class="calibre11">``` $timestamp:UNIX 时间戳 $lan:语言包 ``` ``` 语言包默认值:: ``` <pre class="calibre11">``` $lan = array( 'month_ago'=>'月前', 'day_ago'=>'天前', 'hour_ago'=>'月前', 'minute_ago'=>'月前', 'second_ago'=>'月前', ); ``` ``` #### 【用例】 ``` <pre class="calibre11">``` <?php include './xiunophp/xiunophp.php'; $n = time() - 86401; echo humandate($n); // 结果: 1 天前 ?> ``` ```