using System;
using System.Globalization;
public class SamplesKoreanCalendar {
public static void Main() {
KoreanCalendar myCal = new KoreanCalendar();
int monthInAYear;
for ( int y = 1; y <= 2010; y++ ) {
monthInAYear = myCal.GetMonthsInYear( y, KoreanCalendar.CurrentEra );
for ( int m = 1; m <= monthInAYear; m++ )
Console.WriteLine("\t{0}", myCal.IsLeapMonth( y, m, KoreanCalendar.CurrentEra ) );
}
}
}
|