YEARS
Description
Returns the number of years from the epoch (1970-01-01 00:00:00) to the specified timestamp.
Parameters
expr: An expression of type DATE / TIMESTAMP_LTZ / TIMESTAMP_NTZ
Returns
biginttype, representing the number of years since the epoch.
