时间:2021-07-01 10:21:17 帮助过:17人阅读
'年', '2592000'=>'个月', '604800'=>'星期', '86400'=>'天', '3600'=>'小时', '60'=>'分钟', '1'=>'秒' ); foreach ($f as $k=>$v) { if (0 != $c=floor($t/(int)$k)) { return $c.$v.'前'; } } } echo format_time('1336880454'); ?>
=date("Y-m-d ",strtotime($row["pay_time"]))?>
'年', '2592000'=>'个月', '604800'=>'星期', '86400'=>'天', '3600'=>'小时', '60'=>'分钟', '1'=>'秒' ); foreach ($f as $k=>$v) { if (0 != $c=floor($t/(int)$k)) { return $c.$v.'前'; } } } while ($row = mysql_fetch_array($rs_tmmsm)) { echo format_time(strtotime($row["pay_time"])); } ?>