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.
特定のヨーロッパ形式の日付(DD / MM / YY)を正しいタイムスタンプに変換する最も効率的な方法は何ですか?
例:10/11/12は、2012年10月11日ではなく、2012年11月10日として1352505600を出力する必要があります。
DateTime::createFromFormat()
$date = DateTime::createFromFormat('d/m/y', $eu_date); echo $date->format("U");
日付関数の2番目のオプション変数を使用して、UNIXタイムスタンプをフィードします
http://php.net/manual/en/function.date.php