There is also an example in the Date::Calc distribution that does exactly
what you want:

<cpan build directory>/Date-Calc-4.3/examples/nth_weekday.pl

which is called like:

perl  nth_weekday.pl  <nth>  <weekday>  <month>  <year>

running

perl  nth_weekday.pl  3rd    Friday     7        2001

yields:

The 3rd Friday in July 2001 is Friday, July 20th 2001.

Eric

On Thu, 19 Jul 2001, Bob Showalter wrote:

> Date: Thu, 19 Jul 2001 17:13:03 -0400
> From: Bob Showalter <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: RE: Re: Module question
>
> [EMAIL PROTECTED] wrote:
> > Like I said I was frustrated.  I'm using the Deitel and
> > Deitel book.  But it is probably not it's fault.  I'm just confused.
>
> Don't know the book. I Suggest the O'Reilly books.
>
> > I thought I understood I needed to define how I should use
> > the module so it would use it.  But from what you just said I
> > guess not.  Please provide assistance or a example.
> >
> > Thanks..
>
> Look at the documentation for Date::Calc. It has a section call "RECIPES",
> and recipe #11 is very close to what you are wanting. Start with that code
> and make sure it works. Then start changing it to match what you want.
>
> perldoc Date::Calc
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

 Eric Wisti
 Kinetic, Inc.
 (651) 848-0477



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to