CalendarSystem GetAbsoluteYear Method Noda Time

[This is preliminary documentation and is subject to change.]

Returns the "absolute year" (the one used throughout most of the API, without respect to eras) from a year-of-era and an era.

Namespace: NodaTime
Assembly: NodaTime (in NodaTime.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax

public int GetAbsoluteYear(
	int yearOfEra,
	Era era
)

Return Value

Type: OnlineInt32
The absolute year represented by the specified year of era.
Exceptions

Remarks

For example, in the Gregorian and Julian calendar systems, the BCE era starts at year 1, which is equivalent to an "absolute year" of 0 (then BCE year 2 has an absolute year of -1, and so on). The absolute year is the year that is used throughout the API; year-of-era is typically used primarily when formatting and parsing date values to and from text.
Version Information

Available since: 1.0.0
Supported in the PCL? Yes
See Also