Fake the system time for a given command. More information: https://manned.org/faketime.
date
:faketime '{{today 23:30}}' {{date}}
bash
shell, which uses yesterday as the current date:faketime '{{yesterday}}' {{bash}}
faketime '{{next Friday 1 am}}' {{path/to/program}}