Dieses Script gibt das aktuelle Datum und die aktuelle Uhrzeit aus:
<?php $timestamp = time(); $datum = date("d.m.Y",$timestamp); $clock = date("H:i:s",$timestamp); echo "$datum - $clock Uhr"; ?>
Ausgabe: 25.04.2024 - 08:04:35 Uhr
Dieses Script gibt das aktuelle Datum und die aktuelle Uhrzeit aus:
<?php $timestamp = time(); $datum = date("d.m.Y",$timestamp); $clock = date("H:i:s",$timestamp); echo "$datum - $clock Uhr"; ?>
Ausgabe: 25.04.2024 - 08:04:35 Uhr