= 1000) { $yr -= 1000; $r .= "M"; } if ($yr >= 900) { $yr -= 900; $r .= "CM"; } if ($yr >= 500) { $yr -= 500; $r .= "D"; } if ($yr >= 400) { $yr -= 400; $r .= "CD"; } while ($yr >= 100) { $yr -= 100; $r .= "C"; } if ($yr >= 90) { $yr -= 90; $r .= "XC"; } if ($yr >= 50) { $yr -= 50; $r .= "L"; } if ($yr >= 40) { $yr -= 40; $r .= "XL"; } while ($yr >= 10) { $yr -= 10; $r .= "X"; } if ($yr == 9) { $yr -= 9; $r .= "IX"; } if ($yr >= 5) { $yr -= 5; $r .= "V"; } if ($yr == 4) { $yr -= 4; $r .= "IV"; } while ($yr >= 1) { $yr -= 1; $r .= "I"; } return $r; } $month_names = array("", "Ianuari", "Februari", "Marti", "April", "Mai", "Iuni", "Iuli", "August", "Septembr", "Octobr", "Novembr", "Decembr"); $full_names = array("", "Ianuarius", "Februarius", "Martius", "Aprilis", "Maius", "Iunius", "Iulius", "Augustus", "September", "October", "November", "December"); $english_mos = array("", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); if ($month == 3 || $month == 5 || $month == 7 || $month == 10) { $nones = 7; } else { $nones = 5; } ?> Latin Calendar ">
8) echo "ibus"; else echo "is"; } else if ($i > 1 && $i < $nones) { if ($nones - $i == 1) { echo "pridie"; } else { echo "a.d. "; echo roman($nones - $i + 1); } echo " Nonas $month_names[$month]"; if ($month == 4 || $month > 8) echo "es"; else echo "as"; } else if ($i == $nones) { echo "Nonis $month_names[$month]"; if ($month == 4 || $month > 8) echo "ibus"; else echo "is"; } else if ($i > $nones && $i < $nones + 8) { if ($nones + 8 - $i == 1) { echo "pridie"; } else { echo "a.d. "; echo roman($nones + 8 - $i + 1); } echo " Idus $month_names[$month]"; if ($month == 4 || $month > 8) echo "es"; else echo "as"; } else if ($i == $nones + 8) { echo "Idibus $month_names[$month]"; if ($month == 4 || $month > 8) echo "ibus"; else echo "is"; } else { if ($i == $end) { echo "pridie"; } else if ($month == 2 && $end == 29 && $i < 25) { echo "a.d. "; echo roman($end + 1 - $i); } else { echo "a.d. "; echo roman($end + 1 - $i + 1); } echo " Kalendas $month_names[$next_month]"; if ($next_month == 4 || $next_month > 8) echo "es"; else echo "as"; if ($month == 2 && $end == 29 && $i == 25) echo " bis"; } ?>