public function parse() { parent::parse(); if (DateParser::contains_ambiguous_keyword($this->original_raw_date)) { $this->certainty = new Ambiguous(); } }
public function check() { $pos = strpos($this->raw_date, "th-century"); if (!$pos) { return false; } $this->raw_date = str_replace("th-century", "", $this->raw_date); // 16th-century => 16 $this->raw_date .= '00'; // 16 => 1600 return parent::check(); }