Removed getMonthsInInterval method as it already exists with the name of monthCount
This commit is contained in:
parent
09bece8f8e
commit
0080a55bf8
1 changed files with 0 additions and 23 deletions
|
|
@ -463,29 +463,6 @@ sub getMonthName {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
|
||||||
=head2 getMonthsInInterval ( start, end )
|
|
||||||
|
|
||||||
Returns the number of months between two epoch dates.
|
|
||||||
|
|
||||||
=head3 start
|
|
||||||
|
|
||||||
An epoch date.
|
|
||||||
|
|
||||||
=head3 end
|
|
||||||
|
|
||||||
An epoch date.
|
|
||||||
|
|
||||||
=cut
|
|
||||||
|
|
||||||
sub getMonthsInInterval {
|
|
||||||
my $self = shift;
|
|
||||||
my $start = DateTime->from_epoch( epoch =>shift);
|
|
||||||
my $end = DateTime->from_epoch( epoch =>shift);
|
|
||||||
my $duration = $end - $start;
|
|
||||||
return $duration->delta_months;
|
|
||||||
}
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
=head2 getSecondsFromEpoch ( epoch )
|
=head2 getSecondsFromEpoch ( epoch )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue