System::Globalization::Calendar::IsLeapYear 方法

Calendar::IsLeapYear(int) const method

检查该年是否为闰年。

virtual bool System::Globalization::Calendar::IsLeapYear(int year) const
参数类型描述
年份int年份。

ReturnValue

如果指定年份是闰年则为 true,否则为 false。

另见

Calendar::IsLeapYear(int, int) const method

检查该年是否为闰年。

virtual bool System::Globalization::Calendar::IsLeapYear(int year, int era) const =0
参数类型描述
年份int年份。
纪元int纪元。

ReturnValue

如果指定年份是闰年则为 true,否则为 false。

另见