A PHP Remake of the Rocknarok Multiverse Time clock https://rmt.yandols.xyz
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RMT-Clock-PHP/index.php

22 lines
404 B

<?php
//Settings here
//Mechanisms here
// Testing
$now = new DateTime();
4 years ago
$zero = new DateTime('1442-01-01');
$diff = $now->diff($zero);
echo $diff->format('%a days'); // days since day zero
4 years ago
echo "<br/>"; //separator
4 years ago
$year = date("Y") - 579;
4 years ago
$month = date("M") - 6;
$day = date("d") - 12;
// test sample date
echo "Year: " . $year . " Month: " . $month . " Day: " . $day . "<br/>";
4 years ago
?>
Placeholder.