Rocknarok Multiverse Time Clock
Not functional yet! Currently in testing phase.
Testing results as follow,Source code development here.
";
$now = new DateTime();
$zero = new DateTime('1442-01-01');
$diff = $now->diff($zero);
echo $diff->format('%a days'); // days since day zero
echo "
"; //separator
// Test 2 with sample date
echo "Test #2:
";
$year = date("Y") - 579;
$month = date("M") - 6;
$day = date("d") - 12;
echo "Year: " . $year . " Month: " . $month . " Day: " . $day . "
";
echo "
"; //separator
// Test 3 with idea based on ahk version of RMT, not sure if actually works in PHP
echo "Test #3:
";
$testdate=date_create();
date_add($testdate,date_interval_create_from_date_string("-579 years"));
date_add($testdate,date_interval_create_from_date_string("-6 months"));
date_add($testdate,date_interval_create_from_date_string("12 days"));
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("6 seconds"));
echo date_format($testdate,"Y/m/d H:i:s");
echo "
"; //separator
?>
Placeholder.