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