On 9/20/03 Joshua Hoblitt wrote:

>> I'm not sure about the count in a year, but I frequently need to
>> determine how many of a given day of the week fall in a given month
>> of the year, or, more precisely, given that today is Saturday,
>> September 20, I need to figure out whether today is the first,
>> second, third, fourth, or fifth Saturday of the month. I've worked
>> out code using existing methods to tell me what I need to know, and
>> I'm not sure that an entirely new method is warranted here.
>
>To generalize:
>
>You want to know how many of a given day occur in a range and at what 
>position in that range a given datetime is?
>
>This sounds like something that should operate on a DT::Span object.
>

It's a recurrence set. ->count is how many, index in set array (+1) is position.

  - Bruce

__bruce__van_allen__santa_cruz__ca__

Reply via email to