in reply to Re^2: 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?
use strict; use warnings; use Time::Piece; use Time::Seconds; use Date::Calc qw(Mktime); sub get_bofw { my $time = Mktime ( @_ ); my $t = localtime($time); my $bow = $t - ($t->_wday * ONE_DAY); } my $bofw = get_bofw( 2010, 03, 16, 12, 0, 0 ); print "$bofw\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Is there an easy way to get the start date of the current week?
by BrowserUk (Patriarch) on Aug 21, 2010 at 15:01 UTC | |
by james2vegas (Chaplain) on Aug 21, 2010 at 15:19 UTC | |
by BrowserUk (Patriarch) on Aug 21, 2010 at 16:01 UTC | |
by james2vegas (Chaplain) on Aug 21, 2010 at 16:22 UTC |