Separate clock into its own module based on test 3

master
YandolsZX 3 years ago
parent 1af7b21bf6
commit 0a89086245
  1. 17
      servertime.php

@ -0,0 +1,17 @@
<?php
// Rocknarok Multiverse Time Clock
// Server Time API Module
// Set current datetime of Rocknarok Universe.
$rutime=date_create();
date_add($rutime,date_interval_create_from_date_string("-579 years"));
date_add($rutime,date_interval_create_from_date_string("-6 months"));
date_add($rutime,date_interval_create_from_date_string("12 days"));
date_add($rutime,date_interval_create_from_date_string("2 hours"));
date_add($rutime,date_interval_create_from_date_string("17 minutes"));
date_add($rutime,date_interval_create_from_date_string("6 seconds"));
// Return current datetime to requester.
echo date_format($rutime,"Y/m/d H:i:s");
?>
Loading…
Cancel
Save