I have the following entry in cron:
0 0 * * * /path/to/script.sh
in script.sh, there's a call to:
date +%Y%m%d
Even if this executed in zero-time, I'm assuming that the value of date will be for the date after midnight, rather than the date before. Is that correct?