Php以gmt格式转换时间

mic*_*ele 3 php time gmt

我有这个字符串2012-06-27 16:17:06,我想将其转换为GMT格式.
我怎样才能做到这一点?

非常感谢.

Nik*_* K. 6

使用gmdate().
通过使用strtotime然后使用将当前日期格式转换为UNIX时间戳gmdate($format, $timestamp);