find if date is older than 30 days

前端 未结 5 1634
我寻月下人不归
我寻月下人不归 2020-12-23 09:01

The date string looks like this

2011-08-19 17:14:40

(year-month-day hours:minutes:seconds)

How can I find out if the date is older than

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-23 09:43

    strtotime('2011-08-19 17:14:40') + 30 * 24 * 60 * 60 < time();
    

提交回复
热议问题