Date-RetentionPolicy
view release on metacpan or search on metacpan
lib/Date/RetentionPolicy.pm view on Meta::CPAN
297298299300301302303304305306307308309310311312313314315316317=head2 reference_date_or_default
Read-only. Return (a clone of) L</reference_date>, or if it isn't set, return
the current date in the designated L</time_zone> rounded up to the next day
boundary.
=head2 auto_sync
While walking backward through time intervals looking for backups, adjust the
interval endpoint to be closer to whatever match it found. This might allow
the algorithm to essentially adjust the C<reference_date> to match whatever
schedule your backups are running on. This is not enabled by default.
=head1 METHODS
=head1 prune
my $pruned_arrayref= $self->prune( \@times );
C<@times> may be an array of epoch numbers, DateTime objects, or date strings
( run in 1.330 second using v1.01-cache-2.11-cpan-49f99fa48dc )