Subject: | refactoring DateTime::delta_days |
The sort in delta_days unnecessary:
sub DateTime::delta_days
{
my $self = shift;
my $dt = shift;
DateTime::Duration->new(
days => abs(
( $self->local_rd_values )[0] - ( $dt->local_rd_values )[0]
)
);
}
Be well,
rir