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.
echo date('Y-m-d h:m:s',strtotime('2008-11-03 16:00:29'))
2008-11-03 04:11:29 を返します
デフォルトのタイムゾーンを変更し、文字列の後ろに GMT、UTC、PTC を追加しようとしましたが、出力は何も変わりません。strtotime を入力に一致させるにはどうすればよいですか?
i数分、H24 時間必要です。
i
H
日付のドキュメントを参照してください。
mは月です。そのため、時間は月と同じ 11 分になります。
m
'Y-m-d H:i:s'24 時間制が必要な場合に使用するか、最後に午前/午後を追加します。'Y-m-d h:i:s a'
'Y-m-d H:i:s'
'Y-m-d h:i:s a'