As ever with clock setting, there is a bit of data validation needed, although I don't think I've covered every possible eventuality. Certainly it doesn't deal with leap years. The chip itself doesn't have a years register, so Acorn had to use one of its alarm registers to store a year byte.