On Dec 27, Hanson, Robert said:
># UNTESTED!
Then please test it. Your missing the necessary
use Time::Local;
line.
>sub nextMonth {
> my $time = shift;
>
> # get date info for that time, increment month only.
> my @date = localtime($time);
> $date[4]++;
>
> # check for month out of bounds.
> if ( $date[4] == 12 ) {
> $date[5]++;
> $date[4] = 0;
> }
>
> # return new time
> return timelocal(@date);
>}
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for? <tenderpuss> why, yansliterate of course.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]