Many of us do not realize that MySQL's Timestamp is not the timestamp which PHP date() understands.多くの問い合わせはありませんMySQLのタイムスタンプを実感してのタイムスタンプではないがPHPのdate ( )を理解します。 In fact if you try to use MySQL timestamp directly in php date() function then you will get totally wrong dates.実際にMySQLを使用しようとした場合のタイムスタンプを直接PHPのdate ( )関数の日付を選択すると、完全に間違っています。 There is a simple way to use MySQL timestamp data in php.簡単な方法を使用するには、 MySQLのタイムスタンプのデータをPHPのです。

First you need to modify the SQL query to use MySQL's UNIX_TIMESTAMP() function.第一を変更する必要がSQLクエリを使用し、 MySQLのunix_timestamp ( )関数です。 So if your SQL looks like:もししているSQLは次のよう:
SELECT author, `when` …選択著者、 `時` …

then convert it to:それを入力し、変換する:
SELECT author, UNIX_TIMESTAMP(`when`) …選択著者、 unix_timestamp ( ` ` ) …

Then use PHP's date() function to convert the unix timestamp to appropriate display format like this: PHPの日付を使用し( )関数をUnixタイムスタンプに変換するこのように適切な表示形式:
date("F j, Y, g:ia", $row[1])日付(の" F無し、 y 、グラム:イア" 、 $行[ 1 ] )

where $row[1] contains the timestamp column value.どこ$行[ 1 ]には、タイムスタンプ列の値です。