Changeset 1105
- Timestamp:
- 07/18/06 16:29:22
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/refactoring-planet/plagger/lib/Plagger/Rule/Fresh.pm
r1104 r1105 2 2 use strict; 3 3 use base qw( Plagger::Rule ); 4 5 use Time::Duration::Parse;6 4 7 5 sub init { … … 46 44 # if it's all digit, the unit is minutes 47 45 return $duration * 60; 46 } 47 48 eval { require Time::Duration::Parse }; 49 if ($@) { 50 Plagger->context->error("You need to install Time::Duration::Parse to use human readable timespec"); 48 51 } 49 52
