The error you have is you didn't use the module that already does this for
you.
use Data::Calc qw(Days_in_Month);
-Original Message-
From: Charlie Farinella [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 5:13 PM
To: Perl Beginners
Subject: Last day of Month
I
on Mon, 30 Sep 2002 21:12:56 GMT, Charlie Farinella wrote:
I have an error popping up in an application that runs monthly reports
and everymonth seems to leave off the last day's entries.
The subroutine that determines the last day of the month is here:
sub GetLastDayOfMonth {
my(
er... my bad.. typo
use Date::Calc qw(Days_in_Month);
-Original Message-
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 5:17 PM
To: 'Charlie Farinella'; Perl Beginners
Subject: RE: Last day of Month
The error you have is you didn't use
On Mon, 2002-09-30 at 17:18, Felix Geerinckx wrote:
on Mon, 30 Sep 2002 21:12:56 GMT, Charlie Farinella wrote:
I have an error popping up in an application that runs monthly reports
and everymonth seems to leave off the last day's entries.
The subroutine that determines the last day
on Mon, 30 Sep 2002 21:38:34 GMT, Charlie Farinella wrote:
I don't know if this is helpful. Let me know.
a) how this function is called, and
if( $hashref-{'period'} eq '1' ) {
$starttime = GetFirstDayOfMonth( $curtime );
$endtime = GetLastDayOfMonth( $curtime
From: Charlie Farinella
[EMAIL PROTECTED]
I have an error popping up in an application that runs monthly reports
and everymonth seems to leave off the last day's entries.
The subroutine that determines the last day of the month is here:
sub GetLastDayOfMonth {
my(
Charlie Farinella wrote:
I have an error popping up in an application that runs monthly reports
and everymonth seems to leave off the last day's entries.
The subroutine that determines the last day of the month is here:
sub GetLastDayOfMonth {
my( $sec, $min, $hours, $mday, $mon, $year