---
title: "System::Globalization::TaiwanCalendar::GetEra method"
url: "https://reference.aspose.com/pub/cpp/system.globalization/taiwancalendar/getera/"
product: "Aspose.PUB for C++"
description: "System::Globalization::TaiwanCalendar::GetEra method. Gets era for the specified time point in C++."
---

## TaiwanCalendar::GetEra method


Gets era for the specified time point.

```cpp
int System::Globalization::TaiwanCalendar::GetEra(DateTime time) const override
```


| Parameter | Type | Description |
| --- | --- | --- |
| time | DateTime | Time and date to extract data from. |

### ReturnValue

Era of the time point passed.

## See Also

* Class [DateTime](../../../system/datetime/)
* Class [TaiwanCalendar](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PUB for C++](../../../)
