This commit is contained in:
Christian Paminger
2007-07-03 15:17:55 +00:00
parent c702fef7b1
commit 855bcda5a1
5 changed files with 98 additions and 50 deletions
+15 -1
View File
@@ -111,7 +111,21 @@ class datum
$datum+=3600;
return $datum;
}
/**
* Springt von einen UNIX Timestamp ($datum) $days nach vor bzw. hinten
*/
function jump_day($datum, $days)
{
$stunde_vor=date("G",$datum);
// Ein Tag sind 86400 Sekunden
$datum+=86400*$days;
$stunde_nach=date("G",$datum);
if ($stunde_nach!=$stunde_vor)
$datum+=3600;
return $datum;
}
/**
* Konvertiert das ISO Datumsformat (YYYY-MM-DD)
* nach (DD.MM.YYYY)