从类似时间:
$time_on_seconds = 18000;
等于5个小时。
现在使用此代码减去秒Im:
$new_time_on_seconds = date("H:i", strtotime($time_on_seconds) - 60);
[应该返回我23:59时返回我4:59
23:59
4:59
只需删除strtotime。Strtotime会按照名称所说的做一个str(字符串)并使其成为时间(秒),因此在已经存在的数字上使用它是行不通的。