$a = '2014-12-30 00:00:00'; $b = '2014-12-30 00:10:00'; echo strtotime($a)."\n"; //1419894000 echo strtotime($b); //1419894600
相差10分钟(600秒),时间戳就是600
posted on 2014-12-30 10:45 walter371 阅读(274) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 walter371 Powered by .NET 9.0 on Kubernetes