4#include <system/globalization/calendar.h>
6namespace System {
namespace Globalization {
28 static constexpr int UmAlQuraEra = 1;
38 ASPOSECPP_SHARED_API
int GetLeapMonth(
int year,
int era)
const override;
39 ASPOSECPP_SHARED_API
bool IsLeapYear(
int year,
int era)
const override;
40 ASPOSECPP_SHARED_API
bool IsLeapMonth(
int year,
int month,
int era)
const override;
41 ASPOSECPP_SHARED_API
bool IsLeapDay(
int year,
int month,
int day,
int era)
const override;
50 void VerifyYear(
int year,
int era)
const override;
51 void VerifyMonth(
int year,
int month,
int era)
const override;
52 void VerifyDate(
int year,
int month,
int day,
int era)
const override;
54 int EraToIcuEra(
int era)
const override;
55 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 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 bool IsLeapMonth(int year, int month) const
Checks if the month is leap.
virtual bool IsLeapYear(int year) const
Checks if the year is leap.
Um Al Qura calendar. Not implemented. Objects of this class should only be allocated using System::Ma...
Definition: um_al_qura_calendar.h:17
DayOfWeek GetDayOfWeek(DateTime time) const override
Gets day of week for the specified time point.
int GetLeapMonth(int year, int era) const override
Gets the leap month for the specified year.
Details::CalendarId get_ID() const override
Gets calendar identifier.
UmAlQuraCalendar()
Constructor.
bool IsLeapMonth(int year, int month, int era) const override
Checks if the month is leap.
bool IsLeapYear(int year, int era) const override
Checks if the year is leap.
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.
DateTime get_MaxSupportedDateTime() const override
Maximal point in time that is supported by the calendar.
ArrayPtr< int > get_Eras() const override
Gets list of eras existing in calendar.
void set_TwoDigitYearMax(int value) override
Sets the last year that can be represented by a 2-digit.
DateTime get_MinSupportedDateTime() const override
Minimal point in time that is supported by the calendar.
SharedPtr< Object > Clone() override
Creates a copy of the current object and returns a shared pointer to it.
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< UmAlQuraCalendar > UmAlQuraCalendarPtr
UmAlQuraCalendar pointer type.
Definition: um_al_qura_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