CalendarIdentifiers.Thai Property

Definition

Gets the identifier for the Thai calendar.

public:
 static property Platform::String ^ Thai { Platform::String ^ get(); };
static winrt::hstring Thai();
public static string Thai { get; }
var string = CalendarIdentifiers.thai;
Public Shared ReadOnly Property Thai As String

Property Value

String

Platform::String

winrt::hstring

The string "ThaiCalendar", which is the identifier for the Thai calendar.

Remarks

The Thai calendar works exactly like the Gregorian calendar, except that the year and era are different.

The Thai calendar system recognizes only the current era.

Leap years in the Thai calendar correspond to the same leap years in the Gregorian calendar. A leap year in the Gregorian calendar is defined as a Gregorian year that is evenly divisible by four, except if it is divisible by 100. However, Gregorian years that are divisible by 400 are leap years. A common year has 365 days and a leap year has 366 days. The Thai calendar has 12 months with 28 to 31 days each:

February has 29 days during leap years and 28 during common years.

The date January 1, 2012 A.D. in the Gregorian calendar is equivalent to the first day of January in the year 2555 of the current era in the Thai calendar.

Because the Thai calendar corresponds to the Gregorian calendar, Thai calendar strings for day of the week names and month names are localized for all supported locales and hence will appear in the language corresponding to the ResolvedLanguage property of the calendar object.

Applies to

See also