O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

ThaiBuddhistCalendar

Synopsis

This class implements the Thai Buddhist calendar. This calendar works like the Gregorian calendar except for the year and era. 2001 in the Gregorian calendar is the year 2544 in the Thai Buddhist calendar.

public class ThaiBuddhistCalendar : Calendar {
// Public Constructors
   public method ThaiBuddhistCalendar();  
// Public Static Fields
   public const field int ThaiBuddhistEra;                       // =1
                  // Public Instance Properties
   public override field int[] Eras{get; }                       // overrides Calendar
   public override field int TwoDigitYearMax{set; get; }         // overrides Calendar
                  // Public Instance Methods
   public override method DateTime AddMonths(DateTime time,      // overrides Calendar
        int months);  
   public override method DateTime AddYears(DateTime time,       // overrides Calendar
        int years);  
   public override method int GetDayOfMonth(DateTime time);     // overrides Calendar
   public override method DayOfWeek GetDayOfWeek(               // overrides Calendar
        DateTime time);  
   public override method int GetDayOfYear(DateTime time);      // overrides Calendar
   public override method int GetDaysInMonth(int year,           // overrides Calendar
        int month, int era);  
   public override method int GetDaysInYear(int year,            // overrides Calendar
        int era);  
   public override method int GetEra(DateTime time);            // overrides Calendar
   public override method int GetMonth(DateTime time);          // overrides Calendar
   public override method int GetMonthsInYear(int year,          // overrides Calendar
        int era);  
   public override method int GetYear(DateTime time);           // overrides ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required