Date-RetentionPolicy

 view release on metacpan or  search on metacpan

lib/Date/RetentionPolicy.pm  view on Meta::CPAN


=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

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.989 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )