How to get time difference in minutes in PHP

后端 未结 17 2247
独厮守ぢ
独厮守ぢ 2020-11-21 07:22

How to calculate minute difference between two date-times in PHP?

17条回答
  •  感动是毒
    2020-11-21 07:47

    Subtract the past most one from the future most one and divide by 60.

    Times are done in Unix format so they're just a big number showing the number of seconds from January 1, 1970, 00:00:00 GMT

提交回复
热议问题