I have Night Mode scheduled in the Display settings on macOS, but I also wanted Dark Mode to activate and deactivate at the same time.
I found a recipe that schedules an AppleScript file using the Calendar app, which made me wonder if it wouldn't be better to just use a crontab entry?
I ended up adding the lines below to my crontab. You have to set it to a minute after saving the file at first, so you can give it permission to run the script, but after that, it works perfectly.