|
|
@ -8,9 +8,13 @@ $now = new DateTime();
|
|
|
|
$zero = new DateTime('1442-01-01');
|
|
|
|
$zero = new DateTime('1442-01-01');
|
|
|
|
$diff = $now->diff($zero);
|
|
|
|
$diff = $now->diff($zero);
|
|
|
|
echo $diff->format('%a days'); // days since day zero
|
|
|
|
echo $diff->format('%a days'); // days since day zero
|
|
|
|
|
|
|
|
echo "<br/>"; //separator
|
|
|
|
|
|
|
|
|
|
|
|
$year = date("Y") - 579;
|
|
|
|
$year = date("Y") - 579;
|
|
|
|
echo "Year " . $year;
|
|
|
|
$month = date("M") - 6;
|
|
|
|
|
|
|
|
$day = date("d") - 12;
|
|
|
|
|
|
|
|
// test sample date
|
|
|
|
|
|
|
|
echo "Year " . $year . "Month " . $month . "Day " . $day . "<br/>";
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|
Placeholder.
|
|
|
|
Placeholder.
|
|
|
|