System::Globalization::GregorianCalendar::IsLeapYear 方法
GregorianCalendar::IsLeapYear(int) const method
检查该年是否为闰年。
virtual bool System::Globalization::Calendar::IsLeapYear(int year) const
| 参数 | 类型 | 描述 |
|---|---|---|
| 年份 | int | 年份。 |
ReturnValue
如果指定年份是闰年则为 true,否则为 false。
另见
- Class GregorianCalendar
- Namespace System::Globalization
- Library Aspose.Font for C++
GregorianCalendar::IsLeapYear(int, int) const method
检查该年是否为闰年。
bool System::Globalization::GregorianCalendar::IsLeapYear(int year, int era) const override
| 参数 | 类型 | 描述 |
|---|---|---|
| 年份 | int | 年份。 |
| 纪元 | int | 纪元。 |
ReturnValue
如果指定年份是闰年则为 true,否则为 false。
另见
- Class GregorianCalendar
- Namespace System::Globalization
- Library Aspose.Font for C++