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.
11-Aug-11 18:20 GMTPHPのようにGMT形式で日付を表示したい。どうすればこれを行うことができますか?
11-Aug-11 18:20 GMT
$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()はdate()と同じですが、GMT時刻です。
phpサイトは、このhttp://www.php.net/manual/en/function.date.phpにアクセスするのに役立ちます。