Handle Jhdt as a form of century in time splitter

Close #9
This commit is contained in:
2022-03-12 19:32:28 +01:00
parent 3001976b1b
commit b3f7845023
2 changed files with 50 additions and 1 deletions

View File

@ -903,7 +903,7 @@ final class NodaTimeSplitter {
$bcBceIndicator = '+';
// 17. Jahrhundert
if (\preg_match("/^[0-9]{2}\.\ (Jh\.|Jahrhundert|sz|század)$/", $datum)) {
if (\preg_match("/^[0-9]{2}\.\ (Jh\.|Jhd(|\.)|Jhdt(|\.)|Jahrhundert|sz|század)$/", $datum)) {
if ($centuryNo = \intval(\substr($datum, 0, 2))) {
$centuryNo--;
return [(string)$centuryNo . "01", \strval($centuryNo + 1) . "00", "00", "00", $bcBceIndicator, ""];