1 verses of the King James Version have both "whereby" and "years".
Luke 1:18 And Zacharias said unto the angel, Whereby shall I know this? for I am an old man, and my wife well stricken in years.
In other translations: ASV DRC