date / time convert to time since php

后端 未结 5 574
你的背包
你的背包 2021-01-14 10:14

Hello in my database date / time are in this format

2010-06-01T18:20:25+0000

I\'d like to echo that out to time passed since that date / t

5条回答
  •  不知归路
    2021-01-14 10:44

    you can use the func timediff right in your database:

    http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_timediff

    pass the first param as the date, and the second param as now()

提交回复
热议问题