Add Jahreszeiten

This commit is contained in:
Steffen Lange 2021-03-19 12:35:49 +01:00
parent 59af7a7d5d
commit 44d9b49a05
3 changed files with 180 additions and 0 deletions

14
season_test.php Normal file
View file

@ -0,0 +1,14 @@
<?php
require 'season.php';
$jz = new Season();
for ($j = 2000; $j < 2100; $j++) {
$jz->calc($j);
echo date('d.m.Y', $jz->get(Season::Spring)) . "\t";
echo date('d.m.Y', $jz->get(Season::Summer)) . "\t";
echo date('d.m.Y', $jz->get(Season::Autumn)) . "\t";
echo date('d.m.Y', $jz->get(Season::Winter)) . "\n";
}
?>