Beispiel #1
0
 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();
 }
Beispiel #2
0
 public function check()
 {
     $this->original_raw_date = $this->raw_date;
     $this->raw_date = StringTools::remove_nonnumeric_characters($this->raw_date);
     return parent::check();
 }