Re: Find first day of every week in a month



>>>>> "Anil" == Anil Kumar <anilm@xxxxxx> writes:

Anil> I am new to perl and working for a small project...

Anil> I need some help from you..

Anil> How to get all the first days of a week in a month.

Using the bloated "Date::Manip":

use Date::Manip;
my @dates = ParseRecur("every sunday in aug 2005");
print UnixDate($_, "%b %e, %Y\n") for @dates;

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@xxxxxxxxxxxxxx> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
.



Relevant Pages

  • Re: if Ponting has done as what has been written in the press and
    ... anil k goel wrote: ... But pretty darn close. ... Prev by Date: ...
    (rec.sport.cricket)
  • Re: 300D Turbodiesel-Engine would not stop........
    ... I apologize for misspelling your name in my first post. ... it was an easy fix. ... Prev by Date: ...
    (alt.auto.mercedes)
  • Re: Dynamic Arrays
    ... anil wrote: ... > I got to do program with dynamic arrays and they are required to be of ... Robert Gamble ... Prev by Date: ...
    (comp.lang.c)
  • Re: makefile for 2.6 kernel
    ... > Anil just put the names of your .c files where I have mentioned. ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ... Prev by Date: ...
    (Linux-Kernel)
  • Re: doubt with equations
    ... anil wrote: ... > i Have tried this using align but i want better options which will give ... Maarten Bergvelt ... Prev by Date: ...
    (comp.text.tex)