in reply to Re^4: Is there an easy way to get the start date of the current week?
in thread Is there an easy way to get the start date of the current week?
How about:
sub firstDayOfWeek { my $now = time; my @now = localtime $now; return $now - ( $now[ 6 ] * 2 - 1 ) * 43200; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Is there an easy way to get the start date of the current week?
by Tux (Canon) on Aug 22, 2010 at 07:49 UTC | |
|
Re^6: Is there an easy way to get the start date of the current week?
by zwon (Abbot) on Aug 22, 2010 at 15:50 UTC | |
by BrowserUk (Patriarch) on Aug 22, 2010 at 16:59 UTC |