Question : php current time
Answered by : matteo-puppis
echo date('Y-m-d H:i:s');
//Output something like this:
//2021-07-30 10:07:45
Source : | Last Update : Fri, 06 Aug 21
Question : php current time
Answered by : lokesh-kumar-suman
# Current Time
date_default_timezone_set("America/New_York");
echo "The time is " . date("h:i:sa");
Source : | Last Update : Wed, 10 Mar 21
Question : php get current time and date
Answered by : sebastian-tysgwx3bq566
date("Y-n-j G:i:s");
//-->2020-10-29 23:27:15
Source : | Last Update : Thu, 05 Nov 20
Question : get current time in php
Answered by : kinjal-suryavanshi
$time = time();
Source : | Last Update : Wed, 01 Sep 21
Question : php current time
Answered by : eager-elephant-o2g0xttm4w60
<?php
$nextWeek = time() + (7 * 24 * 60 * 60);
// 7 Tage; 24 Stunden; 60 Minuten; 60 Sekunden
echo 'Jetzt: '. date('Y-m-d') ."\n";
echo 'Naechste Woche: '. date('Y-m-d', $nextWeek) ."\n";
// oder strtotime() verwenden:
echo 'Naechste Woche: '. date('Y-m-d', strtotime('+1 week')) ."\n";
?>
Source : https://www.php.net/manual/de/function.time.php | Last Update : Tue, 14 Jul 20