Time::Period is a module that provides the inPeriod method, which takes an argument of a time and a delta from the current time, and returns true if the time is within now + delta, false otherwise. It is used for firing scheduled events--backups, expiration of backups, etc.

WWW: http://search.cpan.org/dist/Time-Period/
