Home  >  Article  >  Backend Development  >  一个时间点加上一个时间长,如何计算呢

一个时间点加上一个时间长,如何计算呢

WBOY
WBOYOriginal
2016-06-13 11:58:141417browse

一个时间点加上一个时间长,怎么计算呢
比如某个影片的上映时间是22:50:00,电影时间总长度是01:40:00 ,这样怎么计算出最后 的结束时间呢
------解决方案--------------------
这样也行

echo date('H:i:s', strtotime('22:50:00') + strtotime('01:40:00') - strtotime('00:00:00'));
00:30:00

吃别人嚼过的馍不香
要学会使用手中的工具

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn