18 if ($dateFormatted ===
null)
22 elseif (is_numeric($dateFormatted))
24 $this->timestamp = (int) $dateFormatted;
28 if (preg_match(static::SERIALIZED_PATTERN, $dateFormatted, $matches))
30 $dateFormatted = $matches[1];
39 $this->timestamp = $date->getTimestamp() -
$offset;
49 $this->timestamp =
null;
103 if ($date->getTimestamp() < 0)
105 $y = (int) $date->format(
'Y');
106 $m = (int) $date->format(
'm');
107 $d = (int) $date->format(
'd');
108 if (0 <= $y && $y <= 69)
111 $date->setDate($y, $m, $d);
113 elseif (70 <= $y && $y <= 100)
116 $date->setDate($y, $m, $d);