lazyweb,
do you know if there's a module to parse human readable duration format into seconds, like:
is( parse_duration("3 seconds"), 3 );
is( parse_duration("7 days, 5 hours"), 622800 );
I want to allow users of Plagger to write things like:
fresh: 7 days
in YAML config file, to say "I want fresher entries than 7 days old".
So it's kind of opposite to what Time::Duration does. I know there's DateTime::Format::Duration but it looks like you have to explicitly specify which format you expect and that's not what I want.
Cache::BaseCache module has internally a similar code that I want. Do you think it's worth splitting the functionality to a separate module?
quick code (Score:1)
Re:quick code (Score:1)
Re:quick code (Score:1)
Re:quick code (Score:1)
Date::Manip? (Score:1)
I thought that’s the one sort of thing where Date::Manip [cpan.org] (otherwise known as Das Bloat From Hell) is the perfect tool.
Re:Date::Manip? (Score:1)
Re:Date::Manip? (Score:1)