Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我需要隐蔽的日期到小时和天
我的日期格式是这样的:2013-09-01 22:15:59
我需要在 24 小时(小时)内显示这样的内容:(12 小时前)
我需要在 24 小时(天)后显示这样的内容:(5 天前)
echo time_elapsed_string('2013-05-01 00:22:35'); echo time_elapsed_string('2013-05-01 00:22:35', true);
4 months ago 4 months, 2 weeks, 3 days, 1 hour, 49 minutes, 15 seconds ago
链接到函数。