my $today = (localtime)[6]; my $target_day = 1; # monday $target_day -= 7; # last week printf "%d days since target day\n", $today - $target_day;
In reply to Re: A Better Way To Get Days Since Monday of Last Week
by Roy Johnson
in thread A Better Way To Get Days Since Monday of Last Week
by Tommy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |