4#include <system/globalization/calendar.h>
6namespace System {
namespace Globalization {
8class ThaiBuddhistCalendar;
32 static constexpr int ThaiBuddhistEra = 1;
42 ASPOSECPP_SHARED_API
int GetDaysInYear(
int year,
int era)
const override;
43 ASPOSECPP_SHARED_API
int GetDaysInMonth(
int year,
int month,
int era)
const override;
50 ASPOSECPP_SHARED_API
int GetLeapMonth(
int year,
int era)
const override;
51 ASPOSECPP_SHARED_API
bool IsLeapYear(
int year,
int era)
const override;
52 ASPOSECPP_SHARED_API
bool IsLeapMonth(
int year,
int month,
int era)
const override;
53 ASPOSECPP_SHARED_API
bool IsLeapDay(
int year,
int month,
int day,
int era)
const override;
54 ASPOSECPP_SHARED_API
DateTime ToDateTime(
int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
int era)
const override;
63 void VerifyYear(
int year,
int era)
const override;
64 void VerifyMonth(
int year,
int month,
int era)
const override;
65 void VerifyDate(
int year,
int month,
int day,
int era)
const override;
67 int EraToIcuEra(
int era)
const override;
68 int IcuEraToEra(
int icu_era)
const override;
Represents a specific date and time value on the time continuum. This type should be allocated on sta...
Definition: date_time.h:50
Calendar which defines how the dates are handled, calculated, formatted, etc. Setter operations are o...
Definition: calendar.h:38
virtual int GetDaysInMonth(int year, int month) const
Gets number of days in specific month.
virtual int GetLeapMonth(int year) const
Gets the leap month for the specified year.
virtual bool IsLeapDay(int year, int month, int day) const
Checks if the day is leap.
virtual int GetMonthsInYear(int year) const
Gets number of months in the specified year.
virtual int GetDaysInYear(int year) const
Gets number of days in specific year.
virtual bool IsLeapMonth(int year, int month) const
Checks if the month is leap.
virtual DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond) const
Constructs DateTime object from components.
virtual bool IsLeapYear(int year) const
Checks if the year is leap.
Thai Buddhist calendar. Objects of this class should only be allocated using System::MakeObject() fun...
Definition: thai_buddhist_calendar.h:17
CalendarAlgorithmType get_AlgorithmType() const override
Gets algorithm type.
bool IsLeapDay(int year, int month, int day, int era) const override
Checks if the day is leap.
int GetLeapMonth(int year, int era) const override
Gets the leap month for the specified year.
DayOfWeek GetDayOfWeek(DateTime time) const override
Gets day of week for the specified time point.
int GetMonthsInYear(int year, int era) const override
Gets number of months in the specified year.
int GetDayOfMonth(DateTime time) const override
Gets day of month for the specified time point.
bool IsGregorianBasedCalendar() const override
Checks if the calendar is Gregorian-based.
DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era) const override
Constructs DateTime object from components.
bool IsLeapMonth(int year, int month, int era) const override
Checks if the month is leap.
ThaiBuddhistCalendar()
Constructor.
int GetDayOfYear(DateTime time) const override
Gets day of year for the specified time point.
ArrayPtr< int > get_Eras() const override
Gets list of eras existing in calendar.
int GetDaysInMonth(int year, int month, int era) const override
Gets number of days in specific month.
int GetYear(DateTime time) const override
Gets year for the specified time point.
bool IsLeapYear(int year, int era) const override
Checks if the year is leap.
DateTime get_MinSupportedDateTime() const override
Minimal point in time that is supported by the calendar.
Details::CalendarId get_ID() const override
Gets calendar identifier.
DateTime get_MaxSupportedDateTime() const override
Maximal point in time that is supported by the calendar.
int GetMonth(DateTime time) const override
Gets month for the specified time point.
SharedPtr< Object > Clone() override
Creates a copy of the current object and returns a shared pointer to it.
int GetEra(DateTime time) const override
Gets era for the specified time point.
int GetDaysInYear(int year, int era) const override
Gets number of days in specific year.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
CalendarId
Identifiers of known calendars.
Definition: calendar_id.h:8
SharedPtr< ThaiBuddhistCalendar > ThaiBuddhistCalendarPtr
ThaiBuddhistCalendar pointer type.
Definition: thai_buddhist_calendar.h:10
CalendarAlgorithmType
Calendar type.
Definition: calendar_algorithm_type.h:10
Definition: db_command.h:9
DayOfWeek
Enumeration that represents a day of week.
Definition: day_of_week.h:11