43 parent::__construct(
"$year-$month-$day",
new DateTimeZone(
"Europe/Berlin"));
44 }
catch (Exception $e) {
48 $this->year = intval(self::format(
"Y"));
49 $this->month = intval(self::format(
"n"));
50 $this->day = intval(self::format(
"j"));
69 $this->month = $month;
77 public function setDay($day)
89 public function setDate($year, $month, $day)
92 $this->month = $month;
94 parent::setDate($year, $month, $day);
103 return [$this->year, $this->month, $this->day];
136 $ret .= $this->month > 0 && $this->month < 13 ?
"-".sprintf(
"%02s", $this->month) :
"";
137 $ret .= $this->day > 0 && $this->day < 32 ?
"-".sprintf(
"%02s", $this->day) :
"";