如何将int转换为datetime?
$timestamp = 1210003200; $datetime = date('Y-m-d H:i:s', $timestamp); echo "该时间戳代表的时间:", $datetime, "<br>\n"; echo "从此时间重新转回时间戳:", strtotime($datetime), "<br>\n";
$timestamp = 1210003200; $datetime = date('Y-m-d H:i:s', $timestamp); echo "该时间戳代表的时间:", $datetime, "<br>\n"; echo "从此时间重新转回时间戳:", strtotime($datetime), "<br>\n";