Date:

Time:

"; } elseif ($rawDate <= 3){ echo "Clarion dates are not usable before 1801. Please enter a number higher than 3.
"; } else { $date = new DateTime('1800-12-28'); $date->modify(round($rawDate).' day'); echo "Date: " . $date->format('Y-m-d') . "
      Year-Mo-Da

"; } if(isset($rawTime)){ $time = $rawTime / 100 /60 / 60; $hours = floor($time); $mins = floor(($time - $hours) * 60); echo "Time: " . str_pad($hours, 2, "0", STR_PAD_LEFT) . ":" . str_pad($mins, 2, "0", STR_PAD_LEFT) . "
Time in 24 hour format."; } else { echo "Please enter a Clarion database time."; } ?>