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.
ページのデータベースにTIMESTAMPがあるので、この形式で$d="2011-01-03 12:53:22"
$d="2011-01-03 12:53:22"
そして、私がそれを送信しようとすると、date("c",$d)私は得るだけです1970-01-01T10:33:31+10:00
date("c",$d)
1970-01-01T10:33:31+10:00
私はphpマニュアルでdate( "c"、THIS)がINTでなければならないことを読んだので、"2011-01-0312:53:22"からintを取得するために何を使用しますか??
日付関数を送信するときに、日付文字列をタイムスタンプに変換するのを忘れた
date('c', strtotime($d));