开发者

add and substract time in php

开发者 https://www.devze.com 2023-03-02 02:52 出处:网络
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.

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

精彩评论

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