יחידה:תאריך: הבדלים בין גרסאות בדף

מאין תקציר עריכה
מאין תקציר עריכה
שורה 576: שורה 576:
         local year = math.floor((self.year < 0 and -1 * self.year or self.year)  / 10) * 10
         local year = math.floor((self.year < 0 and -1 * self.year or self.year)  / 10) * 10
         if self.year>0 then
         if self.year>0 then
         return 'שנות ה־' .. tostring(year%100) .. ' של המאה ה־'.. tostring(ceil(year/100))
         return 'שנות ה־' .. tostring(year%100) .. ' של המאה ה־'.. tostring(math.ceil(year/100))
         else
         else
         return 'שנות ה־' .. tostring(year%100) .. ' של המאה ה־'.. tostring(ceil(year/100))..' לפנה״ס'
         return 'שנות ה־' .. tostring(year%100) .. ' של המאה ה־'.. tostring(math.ceil(year/100))..' לפנה״ס'
         end
         end
end
end