php时间输出结果减去一分钟

如:

<?=date("m-d H:i",strtotime($rs["kgtime"]));?>

假设结果是09-03-23:30,如何让它变成09-03-23:29

前提是

$rs['kgtime'] 

必须是合法的日期时间格式, 要带有年份!

date('m-d H:i', strtotime( '-1 Minute', strtotime($rs['kgtime'])));

浪迹在互联网的大潮中

原文地址:https://www.cnblogs.com/in2013/p/6228051.html