period_years

Years component of a period

Extracts the years field of a Period value.

Parameters

Returns

The years field.

Examples

period_years(years(2))