# Sample code:

use Date::Calc qw(:all);

$days = Days_in_Month('2006','04');

print $days;

# End Sample

You'll need the Date::Calc module from cpan
(http://search.cpan.org/~stbey/Date-Calc-5.4/Calc.pod).




On Tue, 2006-04-04 at 13:49 -0500, Mike Blezien wrote:
> Hello,
> 
> I am trying to come up with a function, or formula calculation,  to determine 
> the total days of a given month, IE: April which has 30 days, Feb has 28 
> days, 
> March has 31 days... etc
> 
> Is there way to do this with Perl
> 
> TIA,
> Mike(mickalo)Blezien
> ===============================
> Thunder Rain Internet Publishing
> Providing Internet Solution that Work
> =============================== 
> 
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to