Re: Saturdays in a month

2009-12-23 Thread Chris Charley
- Original Message - From: Venkat Saranathan Newsgroups: perl.beginners To: Johnson, Reginald (GTS) Cc: beginners@perl.org Sent: Tuesday, December 22, 2009 10:27 AM Subject: Re: Saturdays in a month You can code a simple time logic to calculate this. Here is a sample code. (Bugs

RE: Saturdays in a month

2009-12-23 Thread Johnson, Reginald (GTS)
ubject: Re: Saturdays in a month On Tuesday 22 Dec 2009 17:27:41 Venkat Saranathan wrote: > You can code a simple time logic to calculate this. Here is a sample code. > (Bugs included :)) Yes, indeed. :-) Bugs are included. See below for my comments. > > #!/usr/bin/perl > > u

Re: Saturdays in a month

2009-12-23 Thread Shlomi Fish
On Tuesday 22 Dec 2009 17:27:41 Venkat Saranathan wrote: > You can code a simple time logic to calculate this. Here is a sample code. > (Bugs included :)) Yes, indeed. :-) Bugs are included. See below for my comments. > > #!/usr/bin/perl > > use Time::Local; > use strict; > You should add us

Re: Saturdays in a month

2009-12-23 Thread Venkat Saranathan
You can code a simple time logic to calculate this. Here is a sample code. (Bugs included :)) #!/usr/bin/perl use Time::Local; use strict; sub day_in_a_month { my ($week_day, $month, $year ) = @_; my ($day, $hour, $min, $sec, $time); my ($mon, $wday_count); $day = 1; $hour

Re: Saturdays in a month

2009-12-22 Thread Robert Wohlfarth
On Tue, Dec 22, 2009 at 8:51 AM, Johnson, Reginald (GTS) < reggie_john...@ml.com> wrote: > Is there a module that I can use that will tell me the number of Saturdays, > or any weekday, if I give it the month and year. > > The Date::Manip module has methods for calculating recurring dates (like "e