Yet another way to do it...
use DateTime::Event::Recurrence; my $now = DateTime->now; my $weeks = DateTime::Event::Recurrence->weekly; print $weeks->current( $now )->ymd,"\n"; print $weeks->next( $now )->ymd,"\n"; # output 2003-09-08 2003-09-15
update: s/previous/current/
In reply to Re: Get date interval from week of year -> DateTime
by fglock
in thread Get date interval from week of year -> Date::Manip
by LupoX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |