System::Globalization::GregorianCalendar 类
内容
[
隐藏
]GregorianCalendar class
公历。此类的对象只能使用 System::MakeObject() 函数分配。切勿在栈上或使用 new 运算符创建此类型的实例,因为这会导致运行时错误和/或断言失败。始终将此类包装在 System::SmartPtr 指针中,并使用该指针将其作为参数传递给函数。
class GregorianCalendar : public System::Globalization::Calendar
方法
| 方法 | 描述 |
|---|---|
| Clone() override | RTTI 信息。 |
| get_AlgorithmType() const override | 获取算法类型。 |
| virtual get_CalendarType() const | 获取公历类型。 |
| get_Eras() const override | 获取日历中存在的时代列表。 |
| get_MaxSupportedDateTime() const override | 日历支持的最大时间点。 |
| get_MinSupportedDateTime() const override | 日历支持的最小时间点。 |
| GetDayOfMonth(DateTime) const override | 获取指定时间点的月份中的天。 |
| GetDayOfWeek(DateTime) const override | 获取指定时间点的星期几。 |
| GetDayOfYear(DateTime) const override | 获取指定时间点的年中天。 |
| GetDaysInMonth(int, int, int) const override | 获取特定月份的天数。 |
| virtual GetDaysInMonth(int, int) const | 获取特定月份的天数。 |
| GetDaysInYear(int, int) const override | 获取特定年份的天数。 |
| virtual GetDaysInYear(int) const | 获取特定年份的天数。 |
| static GetDefaultInstance() | 获取默认的公历实例。 |
| GetEra(DateTime) const override | 获取指定时间点的时代。 |
| GetLeapMonth(int, int) const override | 获取指定年份的闰月。 |
| virtual GetLeapMonth(int) const | 获取指定年份的闰月。 |
| GetMonth(DateTime) const override | 获取指定时间点的月份。 |
| GetMonthsInYear(int, int) const override | 获取指定年份的月份数。 |
| virtual GetMonthsInYear(int) const | RTTI 信息。 |
| GetYear(DateTime) const override | 获取指定时间点的年份。 |
| GregorianCalendar(GregorianCalendarTypes) | 构造特定的公历。 |
| IsLeapDay(int, int, int, int) const override | 检查该天是否为闰日。 |
| virtual IsLeapDay(int, int, int) const | 检查该天是否为闰日。 |
| IsLeapMonth(int, int, int) const override | 检查该月是否为闰月。 |
| virtual IsLeapMonth(int, int) const | 检查该月是否为闰月。 |
| IsLeapYear(int, int) const override | 检查该年是否为闰年。 |
| virtual IsLeapYear(int) const | 检查该年是否为闰年。 |
| virtual set_CalendarType(GregorianCalendarTypes) | 设置公历类型。 |
| ToDateTime(int, int, int, int, int, int, int, int) const override | 从组件构造 DateTime 对象。 |
| virtual ToDateTime(int, int, int, int, int, int, int) const | 从组件构造 DateTime 对象。 |
字段
| 字段 | 描述 |
|---|---|
| static constexpr ADEra | 当前纪元。 |
另见
- Class Calendar
- Namespace System::Globalization
- Library Aspose.Font for C++