Maybe a UPS could help with the timed switch on. Timed switch off is easy. Additionally a UPS would also offer a graceful shut-down if there is a power-cut, and boot back up again when power is restored. More money and kit though.