Scheint, als ob da noch PHP 5.1 (oder zumindest < 5.2) läuft.
siehe
http://ch2.php.net/manual/de/class.datetime.php
das könnte sonst in diese dateTime.class.php:
Code:
<?php
if (!class_exists('DateTime')) {
class DateTime {
public $date;
public function __construct($date) {
$this->date = strtotime($date);
}
public function setTimeZone($timezone) {
return;
}
private function __getDate() {
return date(DATE_ATOM, $this->date);
}
public function modify($multiplier) {
$this->date = strtotime($this->__getDate() . ' ' . $multiplier);
}
public function format($format) {
return date($format, $this->date);
}
}
}
?>