Add exams from exam58 to exam98

This commit is contained in:
2024-05-08 13:49:37 +02:00
parent 1bfdab1994
commit 4fd956ddac
39 changed files with 481 additions and 0 deletions

13
exam58/timeStamps.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
//timestamps
$time = time();
$actual_time = date('H:i:s',$time);
$actual_date = date('d.m.Y.', $time);
$modified_time = date(' H:i:s d.m.Y.', strtotime('1 week 2 hours'));
echo 'The current time is ' . $actual_time. ' '. $actual_date . '<br>';
echo 'The modified time is ' . $modified_time;
?>