Some additions to the HTML side moved some comments around on PHP side

master
YandolsZX 4 years ago
parent 54d0c3ba68
commit cfa6761768
  1. 9
      index.php

@ -1,3 +1,5 @@
<html>
<title>Rocknarok Multiverse Time Clock</title>
<h1>Rocknarok Multiverse Time Clock</h1> <h1>Rocknarok Multiverse Time Clock</h1>
<?php <?php
@ -5,8 +7,7 @@
//Mechanisms here //Mechanisms here
// Testing // Testing 1
echo "Test #1: <br/>"; echo "Test #1: <br/>";
$now = new DateTime(); $now = new DateTime();
@ -15,12 +16,12 @@ $diff = $now->diff($zero);
echo $diff->format('%a days'); // days since day zero echo $diff->format('%a days'); // days since day zero
echo "<br/><br/>"; //separator echo "<br/><br/>"; //separator
// Test 2 with sample date
echo "Test #2: <br/>"; echo "Test #2: <br/>";
$year = date("Y") - 579; $year = date("Y") - 579;
$month = date("M") - 6; $month = date("M") - 6;
$day = date("d") - 12; $day = date("d") - 12;
// test sample date
echo "Year: " . $year . " Month: " . $month . " Day: " . $day . "<br/>"; echo "Year: " . $year . " Month: " . $month . " Day: " . $day . "<br/>";
echo "<br/><br/>"; //separator echo "<br/><br/>"; //separator
@ -35,9 +36,9 @@ date_add($testdate,date_interval_create_from_date_string("2 hours"));
date_add($testdate,date_interval_create_from_date_string("17 minutes")); date_add($testdate,date_interval_create_from_date_string("17 minutes"));
date_add($testdate,date_interval_create_from_date_string("6 seconds")); date_add($testdate,date_interval_create_from_date_string("6 seconds"));
echo date_format($testdate,"Y/m/d H:i:s"); echo date_format($testdate,"Y/m/d H:i:s");
echo "<br/><br/>"; //separator echo "<br/><br/>"; //separator
?> ?>
Placeholder. Placeholder.
</html>
Loading…
Cancel
Save