How about:
sub firstDayOfWeek { my $now = time; my @now = localtime $now; return $now - ( $now[ 6 ] * 2 - 1 ) * 43200; }
In reply to Re^5: Is there an easy way to get the start date of the current week?
by BrowserUk
in thread Is there an easy way to get the start date of the current week?
by ramjamman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |