first impl of slicing year and validityPeriod objects.