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 年 10 月 29 日星期二 20:36:21 +1100 到 php 中的正确格式(Ymd H:i:s)?
这个怎么样?
$time = "Tue Oct 29 20:36:21 +1100 2013"; echo date ("Y-m-d H:i:s", strtotime($time));
这将打印您当前时区的时间。