使用strtotime()将其转换为PHP日期对象,然后使用date()将其输出
编辑
更多细节; 尝试:
$time = strtotime('Tue Jan 05 11:08:27 +0000 2010');
echo date("Y-m-d h:i", $time);
Run Code Online (Sandbox Code Playgroud)
Y = 4位数年份m = 2位数月份(领先0)d = 2位数月份(领先0)
h = 12小时时间(前导0)i =分钟(前导0)
http://php.net/manual/en/function.date.php 用于所有格式化选项