I think here we ignore the fact that the timestamps array can contain full timestamps (8 numbers) or only year timestamps (4 numbers). Before, the yearFromString function took care of that.