יחידה:גיל לערכי אישים: הבדלים בין גרסאות בדף
מ ריבוי אפשרויות |
מאין תקציר עריכה |
||
| שורה 115: | שורה 115: | ||
end | end | ||
local success, AgeYears = pcall(dateParser.age, BirthDate , DeathDate) | local success, AgeYears = pcall(dateParser.age, BirthDate , DeathDate) | ||
if success then | if success then | ||
| שורה 124: | שורה 124: | ||
else | else | ||
result = prefix..tostring(AgeYears) | result = prefix..tostring(AgeYears) | ||
end | |||
if BirthDate.precision < dateParser.PRECISION.MONTH or DeathDate.precision < dateParser.PRECISION.MONTH then | |||
result = result .. ' בערך' | |||
end | end | ||