echo date('Y-m-d'); // 本日
echo date('U'); // 現在のUNIXタイムスタンプ
echo date("H:i:s"); // 現在時刻
echo strtotime('2012-12-12'); // 文字列日付からのUNIXタイムスタンプ
echo date('Y-m-d',strtotime('2012-12-12')); // 文字列から日付
2024-05-19
1716083927
10:58:47
1355238000
2012-12-12