php strtotime 如何理解错误的时间?

php > echo strtotime("19666800");
152438039286
php > echo date('Y-m-d',"152438039286");
6800-07-27

strtotime将 19666800 理解车 6800年 7月 27日?
strtotime的工作原理是什么?

阅读 1.8k
1 个回答

strtotime("19666800");返回的是19666800的时间戳

至于19666800解析成什么时间了,date_parse这个方法会告诉你

推荐问题