开发者

add and substract time in php

i have time in the format 04:00 PM so how can i add or substract time in that... in such a way that when i substra开发者_JAVA百科ct AM and PM are also maintained...


You can use strtotime function.

$timestamp = strtotime('04:00 PM');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜