date / time convert to time since php

后端 未结 5 709
你的背包
你的背包 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:32

    u can fetch that fron db and use strtotime function which will make into epoch . and then use date command to print it into any format u want to .

提交回复
热议问题