LupoX has asked for the wisdom of the Perl Monks concerning the following question:
currently I use Date::Manip for getting the week of year on a given date.
Now I would like to get the date intervall for a given
week of year (always for the current year).
Date::Manip does not seem to provide such a routine.
Now the only way I can imagine to do this is a very ugly one:
Make a loop starting with 01-01-2003, check if given week of year does match the one for the current date, and then take the next date. If it does match store the date, and add 7 days for the last day of the week.
Is there a better way?
Thanks a lot for any suggestions and or comments.
Georg -> perlmonks.week.of.year@viot.de
|
|---|