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

WBOY
Release: 2016-06-13 11:58:14
Original
1416 people have browsed it

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

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!