-4

我想以 GMT 格式显示日期,如11-Aug-11 18:20 GMTPHP。我该怎么做呢?

4

2 回答 2

1
$timestamp = epoch time from previous date. time();

echo gmdate('d-M-y H:i').' GMT';
echo gmdate('d-M-y H:i',$timestamp).' GMT';

gmdate() is the same as date() but GMT time.

于 2011-10-26T02:50:08.873 回答
0

php site can help you try to visit this this http://www.php.net/manual/en/function.date.php

于 2011-10-26T02:52:27.840 回答