Sdílet prostřednictvím


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:

MonthAsNumericStringMonthDays in common yearsDays in leap years
1มกราคม (January)3131
2กุมภาพันธ์ (February)2829
3มีนาคม (March)3131
4เมษายน (April)3030
5พฤษภาคม (May)3131
6มิถุนายน (June)3030
7กรกฎาคม (July)3131
8สิงหาคม (August)3131
9กันยายน (September)3030
10ตุลาคม (October)3131
11พฤศจิกายน (November)3030
12ธันวาคม (December)3131

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