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.
在 PHP 5.2 中,如何获取一天中的最后一秒?time() + 86400 只得到第二天?
echo date('r', strtotime('tomorrow') - 1); returns 'Mon, 18 Jan 2010 23:59:59'
你需要处理闰秒(时间如23:59:60)
23:59:60
strtotime('23:59:59');