in reply to A Better Way To Get Days Since Monday of Last Week
my $today = (localtime)[6]; my $target_day = 1; # monday $target_day -= 7; # last week printf "%d days since target day\n", $today - $target_day;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A Better Way To Get Days Since Monday of Last Week
by Tommy (Chaplain) on Jun 07, 2005 at 15:54 UTC |