0

これは、DateTime を使用して PHP で現在の時刻を取得する正しい方法ですか?

$currenttime = new DateTime();
$currenttime2 = $currenttime->format('H:i:s');
4

2 に答える 2