System::Globalization::Calendar class
内容
[
隐藏
]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
方法
| 方法 | 描述 |
|---|---|
| virtual AddDays(DateTime, int) const | 向时间点添加天数。 |
| virtual AddHours(DateTime, int) const | 向时间点添加小时。 |
| virtual AddMilliseconds(DateTime, double) const | 向时间点添加毫秒。 |
| virtual AddMinutes(DateTime, int) const | 向时间点添加分钟。 |
| virtual AddMonths(DateTime, int) const | 向时间点添加月份。 |
| virtual AddSeconds(DateTime, int) const | 向时间点添加秒数。 |
| virtual AddWeeks(DateTime, int) const | 向时间点添加周数。 |
| virtual AddYears(DateTime, int) const | 向时间点添加年份。 |
| Calendar(const Calendar&) | RTTI 信息。 |
| virtual get_AlgorithmType() const | 获取算法类型。 |
| get_CurrentEra() const | 获取当前纪元的索引。 |
| get_CurrentEraValue() const | 获取当前纪元的值。 |
| virtual get_Eras() const | 获取日历中存在的时代列表。 |
| virtual get_ID() const | 获取日历标识符。 |
| get_IsReadOnly() const | 检查日历是否为只读。 |
| virtual get_MaxSupportedDateTime() const | 日历支持的最大时间点。 |
| virtual get_MinSupportedDateTime() const | 日历支持的最小时间点。 |
| virtual get_TwoDigitYearMax() const | 获取可以用两位数字表示的最后一年。 |
| virtual GetDayOfMonth(DateTime) const | 获取指定时间点的月份中的天。 |
| virtual GetDayOfWeek(DateTime) const | 获取指定时间点的星期几。 |
| virtual GetDayOfYear(DateTime) const | 获取指定时间点的年中天。 |
| virtual GetDaysInMonth(int, int) const | 获取特定月份的天数。 |
| virtual GetDaysInMonth(int, int, int) const | 获取特定月份的天数。 |
| virtual GetDaysInYear(int) const | 获取特定年份的天数。 |
| virtual GetDaysInYear(int, int) const | 获取特定年份的天数。 |
| virtual GetEra(DateTime) const | 获取指定时间点的时代。 |
| virtual GetHour(DateTime) const | 获取指定时间点的小时。 |
| virtual GetLeapMonth(int) const | 获取指定年份的闰月。 |
| virtual GetLeapMonth(int, int) const | 获取指定年份的闰月。 |
| virtual GetMilliseconds(DateTime) const | 获取指定时间点的毫秒。 |
| virtual GetMinute(DateTime) const | 获取指定时间点的分钟。 |
| virtual GetMonth(DateTime) const | 获取指定时间点的月份。 |
| virtual GetMonthsInYear(int) const | 获取指定年份的月份数。 |
| virtual GetMonthsInYear(int, int) const | 获取指定年份的月份数。 |
| virtual GetSecond(DateTime) const | 获取指定时间点的秒数。 |
| virtual GetWeekOfYear(DateTime, CalendarWeekRule, DayOfWeek) const | 获取指定时间点的年度周数。 |
| virtual GetYear(DateTime) const | 获取指定时间点的年份。 |
| virtual IsLeapDay(int, int, int) const | 检查该天是否为闰日。 |
| virtual IsLeapDay(int, int, int, int) const | 检查该天是否为闰日。 |
| virtual IsLeapMonth(int, int) const | 检查该月是否为闰月。 |
| virtual IsLeapMonth(int, int, int) const | 检查该月是否为闰月。 |
| virtual IsLeapYear(int) const | 检查该年是否为闰年。 |
| virtual IsLeapYear(int, int) const | 检查该年是否为闰年。 |
| IsValidDay(int, int, int, int) const | 检查年份、月份、日期和纪元的值。 |
| operator=(const Calendar&) | |
| static ReadOnly(const CalendarPtr&) | 获取日历的只读版本。 |
| virtual set_TwoDigitYearMax(int) | 设置可以用两位数字表示的最后一年。 |
| virtual ToDateTime(int, int, int, int, int, int, int) const | 从组件构造 DateTime 对象。 |
| virtual ToDateTime(int, int, int, int, int, int, int, int) const | 从组件构造 DateTime 对象。 |
| virtual ToFourDigitYear(int) const | 使用 TwoDigitYearMax 属性将年份转换为四位数年份。 |
另见
- Class ICloneable
- Namespace System::Globalization
- Library Aspose.Font for C++