Yeah, I concur. But, FWIW it was easy to extend for a minimal forecast:
#! usr/local/bin/perl # rdo.pl use strict; use warnings; print +(localtime)[7] / 7 % 2 ? "This Friday: Work\n" : "This Friday: +Free\n"; print +(localtime)[7] +1 / 7 % 2 ? "Next Friday: Work\n" : "Next Frida +y: Free\n"; print +((localtime)[7] +2) / 7 % 2 ? "Friday the week after: Work\n" : + "Friday the week after: Free\n";
In reply to Re^4: Determining if I have a particular Friday off
by RedElk
in thread Determining if I have a particular Friday off
by thmsdrew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |