System::Globalization::Calendar class
Contents
[
Hide
]Calendar class
Calendar which defines how the dates are handled, calculated, formatted, etc. Setter operations are only enabled on non-read-only objects. 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 Calendar : public System::ICloneable
Methods
| Method | Description |
|---|---|
| virtual AddDays(DateTime, int) const | Adds days to time point. |
| virtual AddHours(DateTime, int) const | Adds hours to time point. |
| virtual AddMilliseconds(DateTime, double) const | Adds milliseconds to time point. |
| virtual AddMinutes(DateTime, int) const | Adds minutes to time point. |
| virtual AddMonths(DateTime, int) const | Adds months to time point. |
| virtual AddSeconds(DateTime, int) const | Adds seconds to time point. |
| virtual AddWeeks(DateTime, int) const | Adds weeks to time point. |
| virtual AddYears(DateTime, int) const | Adds years to time point. |
| Calendar(const Calendar&) | RTTI information. |
| virtual get_AlgorithmType() const | Gets algorithm type. |
| get_CurrentEra() const | Gets index of current era. |
| get_CurrentEraValue() const | Gets value of current era. |
| virtual get_Eras() const | Gets list of eras existing in calendar. |
| virtual get_ID() const | Gets calendar identifier. |
| get_IsReadOnly() const | Checks if the calendar is read only. |
| virtual get_MaxSupportedDateTime() const | Maximal point in time that is supported by the calendar. |
| virtual get_MinSupportedDateTime() const | Minimal point in time that is supported by the calendar. |
| virtual get_TwoDigitYearMax() const | Gets the last year that can be represented by a 2-digit. |
| virtual GetDayOfMonth(DateTime) const | Gets day of month for the specified time point. |
| virtual GetDayOfWeek(DateTime) const | Gets day of week for the specified time point. |
| virtual GetDayOfYear(DateTime) const | Gets day of year for the specified time point. |
| virtual GetDaysInMonth(int, int) const | Gets number of days in specific month. |
| virtual GetDaysInMonth(int, int, int) const | Gets number of days in specific month. |
| virtual GetDaysInYear(int) const | Gets number of days in specific year. |
| virtual GetDaysInYear(int, int) const | Gets number of days in specific year. |
| virtual GetEra(DateTime) const | Gets era for the specified time point. |
| virtual GetHour(DateTime) const | Gets hours for the specified time point. |
| virtual GetLeapMonth(int) const | Gets the leap month for the specified year. |
| virtual GetLeapMonth(int, int) const | Gets the leap month for the specified year. |
| virtual GetMilliseconds(DateTime) const | Gets milliseconds for the specified time point. |
| virtual GetMinute(DateTime) const | Gets minutes for the specified time point. |
| virtual GetMonth(DateTime) const | Gets month for the specified time point. |
| virtual GetMonthsInYear(int) const | Gets number of months in the specified year. |
| virtual GetMonthsInYear(int, int) const | Gets number of months in the specified year. |
| virtual GetSecond(DateTime) const | Gets seconds for the specified time point. |
| virtual GetWeekOfYear(DateTime, CalendarWeekRule, DayOfWeek) const | Gets week of the year for the specified time point. |
| virtual GetYear(DateTime) const | Gets year for the specified time point. |
| virtual IsLeapDay(int, int, int) const | Checks if the day is leap. |
| virtual IsLeapDay(int, int, int, int) const | Checks if the day is leap. |
| virtual IsLeapMonth(int, int) const | Checks if the month is leap. |
| virtual IsLeapMonth(int, int, int) const | Checks if the month is leap. |
| virtual IsLeapYear(int) const | Checks if the year is leap. |
| virtual IsLeapYear(int, int) const | Checks if the year is leap. |
| IsValidDay(int, int, int, int) const | Checks year, month, day and era values. |
| operator=(const Calendar&) | |
| static ReadOnly(const CalendarPtr&) | Gets read only version of calendar. |
| virtual set_TwoDigitYearMax(int) | Sets the last year that can be represented by a 2-digit. |
| virtual ToDateTime(int, int, int, int, int, int, int) const | Constructs DateTime object from components. |
| virtual ToDateTime(int, int, int, int, int, int, int, int) const | Constructs DateTime object from components. |
| virtual ToFourDigitYear(int) const | Converts the year to 4-digit year using TwoDigitYearMax property. |
See Also
- Class ICloneable
- Namespace System::Globalization
- Library Aspose.PDF for C++