in reply to What is the best way to get a list of all Mondays until the end of the year?
Play with this:
perl -MDateTime -le'$min=DateTime->now;$max=DateTime->new(year=>2008,m +onth=>12,day=>31);while($min->dow != 1){$min->add(days=>1)};while($mi +n<$max){print $min->ymd; $min->add(weeks=>1)}'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What is the best way to get a list of all Mondays until the end of the year?
by Anonymous Monk on Aug 19, 2008 at 11:50 UTC | |
by Anonymous Monk on Aug 19, 2008 at 11:54 UTC |