Ejemplo n.º 1
0
    public static void Main()
    {
        Calendar cal         = new UmAlQuraCalendar();
        int      currentYear = cal.GetYear(DateTime.Now);

        for (int year = currentYear; year <= currentYear + 9; year++)
        {
            Console.WriteLine("{0:d4}: {1} days {2}", year,
                              cal.GetDaysInYear(year, UmAlQuraCalendar.UmAlQuraEra),
                              cal.IsLeapYear(year, UmAlQuraCalendar.UmAlQuraEra) ?
                              "(Leap Year)" : "");
        }
    }