System::Globalization::GregorianCalendar class
Contents
[
Hide
]GregorianCalendar class
Gregorian calendar. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
class GregorianCalendar : public System::Globalization::Calendar
Methods
Method | Description |
---|---|
Clone() override | RTTI information. |
get_AlgorithmType() const override | Gets algorithm type. |
virtual get_CalendarType() const | Gets Gregorian calendar type. |
get_Eras() const override | Gets list of eras existing in calendar. |
get_MaxSupportedDateTime() const override | Maximal point in time that is supported by the calendar. |
get_MinSupportedDateTime() const override | Minimal point in time that is supported by the calendar. |
GetDayOfMonth(DateTime) const override | Gets day of month for the specified time point. |
GetDayOfWeek(DateTime) const override | Gets day of week for the specified time point. |
GetDayOfYear(DateTime) const override | Gets day of year for the specified time point. |
GetDaysInMonth(int, int, int) const override | Gets number of days in specific month. |
virtual GetDaysInMonth(int, int) const | Gets number of days in specific month. |
GetDaysInYear(int, int) const override | Gets number of days in specific year. |
virtual GetDaysInYear(int) const | Gets number of days in specific year. |
static GetDefaultInstance() | Gets default gregorian calendar instance. |
GetEra(DateTime) const override | Gets era for the specified time point. |
GetLeapMonth(int, int) const override | Gets the leap month for the specified year. |
virtual GetLeapMonth(int) const | Gets the leap month for the specified year. |
GetMonth(DateTime) const override | Gets month for the specified time point. |
GetMonthsInYear(int, int) const override | Gets number of months in the specified year. |
virtual GetMonthsInYear(int) const | RTTI information. |
GetYear(DateTime) const override | Gets year for the specified time point. |
GregorianCalendar(GregorianCalendarTypes) | Constructs specific gregorian calendar. |
IsLeapDay(int, int, int, int) const override | Checks if the day is leap. |
virtual IsLeapDay(int, int, int) const | Checks if the day is leap. |
IsLeapMonth(int, int, int) const override | Checks if the month is leap. |
virtual IsLeapMonth(int, int) const | Checks if the month is leap. |
IsLeapYear(int, int) const override | Checks if the year is leap. |
virtual IsLeapYear(int) const | Checks if the year is leap. |
virtual set_CalendarType(GregorianCalendarTypes) | Sets Gregorian calendar type. |
ToDateTime(int, int, int, int, int, int, int, int) const override | Constructs DateTime object from components. |
virtual ToDateTime(int, int, int, int, int, int, int) const | Constructs DateTime object from components. |
Fields
Field | Description |
---|---|
static constexpr ADEra | Current era. |
See Also
- Class Calendar
- Namespace System::Globalization
- Library Aspose.PUB for C++