I've never used it but Drayton Wiser have a product exactly for this purpose - not with a physical timer onboard, but designed to connect to a smart system, e.g. the Wiser home hub.
Edit: I think you would need a Wiser hub (i.e. heating/HW programmer for boiler) with it, it wouldn't function on...