If there was an easy way for productivity apps to do that, it would also be a good way for malware to do that. It could also still be tricked, for example, by changing the system date on your device.

I suppose a hypervisor-level monitor could prevent and revert that.