Skip Menu |

This queue is for tickets about the Every CPAN distribution.

Report information
The Basics
Id: 68821
Status: new
Priority: 0/
Queue: Every

People
Owner: Nobody in particular
Requestors: JSWARTZ [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: accept duration strings ("1 minute", "3h") via Time::Duration::Parse
Would you consider passing the first argument through Time::Duration::Parse if it does not look like a number? Then one could do print "hello" if every("4h"); instead of print "hello" if every(seconds => 4*24*60*60); etc. Happy to provide a patch w/tests, for this or an alternate API that you'd prefer. Thanks Jon