Handle Jhdt as a form of century in time splitter

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

No files matched your search

+1 -1
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, ""];