---
title: "System::Globalization::ChineseLunisolarCalendar::GetLeapMonth method"
url: "https://reference.aspose.com/pub/cpp/system.globalization/chineselunisolarcalendar/getleapmonth/"
product: "Aspose.PUB for C++"
description: "System::Globalization::ChineseLunisolarCalendar::GetLeapMonth method. Gets the leap month for the specified year in C++."
---

## ChineseLunisolarCalendar::GetLeapMonth(int, int) const method


Gets the leap month for the specified year.

```cpp
int System::Globalization::ChineseLunisolarCalendar::GetLeapMonth(int year, int era) const override
```


| Parameter | Type | Description |
| --- | --- | --- |
| year | int | Year to get leap month in. |
| era | int | Era. |

### ReturnValue

Leap month of the speicified year of the specified era or zero if the year has no leap month.

## See Also

* Class [ChineseLunisolarCalendar](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PUB for C++](../../../)
## ChineseLunisolarCalendar::GetLeapMonth(int) const method


Gets the leap month for the specified year.

```cpp
virtual int System::Globalization::Calendar::GetLeapMonth(int year) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| year | int | Year to get leap month in. |

### ReturnValue

Leap month of the speicified year or zero if the year has no leap month.

## See Also

* Class [ChineseLunisolarCalendar](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PUB for C++](../../../)
