Add a YearRange class

The YearRange class allows parsing of text-based year ranges with subsequent conversion back into text.