System::Globalization::Calendar::GetLeapMonth 方法

Calendar::GetLeapMonth(int) const method

获取指定年份的闰月。

virtual int System::Globalization::Calendar::GetLeapMonth(int year) const
参数类型描述
年份int获取闰月的年份。

ReturnValue

指定年份的闰月,如果该年没有闰月则返回 0。

另见

Calendar::GetLeapMonth(int, int) const method

获取指定年份的闰月。

virtual int System::Globalization::Calendar::GetLeapMonth(int year, int era) const =0
参数类型描述
年份int获取闰月的年份。
纪元int纪元。

ReturnValue

指定纪元中指定年份的闰月,如果该年没有闰月则返回 0。

另见