in reply to What is the best way to get a list of all Mondays until the end of the year?

Date::Manip is quite convenient for such queries:

perl -e 'use Date::Manip; $dt = ParseDate("now"); while($dt lt "200812 +31") { $dt = Date_GetNext($dt,"Mon", 0); print UnixDate( $dt, "%Y-%m- +%d"), "\n"; }'
Update: shortened the line a bit.

Krambambuli
---
  • Comment on Re: What is the best way to get a list of all Mondays until the end of the year?
  • Download Code