Subject: | Second Tuesday of the month |
Date: | Tue, 18 Oct 2011 13:32:53 -0500 |
To: | bug-DateTime-Event-Recurrence [...] rt.cpan.org |
From: | David Blackstone <jdavidb2006 [...] gmail.com> |
The example below is in the POD:
# second tuesday of every month
my $set = DateTime::Event::Recurrence->monthly( weeks => 2, days => 2 );
I consider this to be broken because it does not work as described. The
behavior that is received is not "second Tuesday of the month" but "Tuesday
of the second week of the month." There is a distinction between these two
scenarios and people do not use the first to describe the second. The
second Tuesday of the month is not dependent on when the week starts, as is
the Tuesday of the second week.
This has been reported as bug 54166. I apologize for opening a new bug, but
I do not know how to comment on the existing bug.
The workaround in 54166 still does not handle the case of generating second
Tuesday of the month. It only lets you change when the calculation of weeks
starts. Second Tuesday of the month is independent of what week number it
occurs in.
Documentation for the 1su 1mo 1tu ... options is unclear.