using System;
using System.Globalization;
public class SamplesThaiBuddhistCalendar {
public static void Main() {
// Creates and initializes a ThaiBuddhistCalendar.
ThaiBuddhistCalendar myCal = new ThaiBuddhistCalendar();
// Displays the header.
for ( int y = 2001; y <= 2010; y++ )
Console.WriteLine( "\t{0}", y );
for ( int y = 2001; y <= 2010; y++ )
Console.WriteLine( "\t{0}", myCal.GetDaysInYear( y, ThaiBuddhistCalendar.CurrentEra ) );
for ( int i = 0; i < myCal.Eras.Length; i++ ) {
Console.Write( "Era {0}:\t", myCal.Eras[i] );
for ( int y = 2001; y <= 2010; y++ )
Console.WriteLine( "\t{0}", myCal.GetDaysInYear( y, myCal.Eras[i] ) );
}
}
}