/** * 时间轴函数, Unix 时间戳 * @param int $time 时间 */ function TranTime($time) { //$time = strtotime($time); $nowTime = time (); $message = ''; //一年前 if (idate ( 'Y', $nowTime ) != idate ( 'Y', $time )) { $message = date ( 'Y年m月d日', $time ); } else { //同一年…