开发者

count date difference in hours using php and mysql

开发者 https://www.devze.com 2022-12-22 21:36 出处:网络
How can i find the date difference in hours using php and mysq开发者_如何转开发l both.Use TIMEDIFF() then take the part before the first colon to get the hours.For MySQL there are a number of DATE/TIM

How can i find the date difference in hours using php and mysq开发者_如何转开发l both.


Use TIMEDIFF() then take the part before the first colon to get the hours.


For MySQL there are a number of DATE/TIME functions, DATEDIFF(), SUBDATE(), SUBTIME()

0

精彩评论

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