$time1 && $time < 7 * 24 * 3600) { $min = floor($time / (3600 * 24)); $str = $min . '天前'; } else { $str = date('n月j日 H:i', strtotime($time_string)); } return $str; } }