It might be relevant how your script is run. A script that is aware of temporal concerns seems like code smell to me. A crontab or other scheduling daemon makes it easy to slot for only weekends, for example, leaving the script to only care about what it is supposed to do, not when it is supposed to do it.
In reply to Re: Run if weekend
by Your Mother
in thread Run if weekend
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |