---
title: "System::Globalization::JapaneseCalendar::GetDaysInYear method"
url: "https://reference.aspose.com/font/cpp/system.globalization/japanesecalendar/getdaysinyear/"
product: "Aspose.Font for C++"
description: "System::Globalization::JapaneseCalendar::GetDaysInYear method. Gets number of days in specific year in C++."
---

## JapaneseCalendar::GetDaysInYear(int) const method


Gets number of days in specific year.

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


| Parameter | Type | Description |
| --- | --- | --- |
| year | int | Year to get number of days in. |

### ReturnValue

Number of days in specified year.

## See Also

* Class [JapaneseCalendar](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
## JapaneseCalendar::GetDaysInYear(int, int) const method


Gets number of days in specific year.

```cpp
int System::Globalization::JapaneseCalendar::GetDaysInYear(int year, int era) const override
```


| Parameter | Type | Description |
| --- | --- | --- |
| year | int | Year to get number of days in. |
| era | int | Era. |

### ReturnValue

Number of days in specified year of specified era.

## See Also

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