RECENT POSTS

P5-time-duration-parse

May 26, 2018

Parse string that represents time duration

TimeDurationParse is a module to parse human readable duration strings like 2 minutes and 3 seconds to seconds.

It does the opposite of duration_exact function in TimeDuration and is roundtrip safe. So, the following is always true.

use TimeDurationParse; use TimeDuration;

my $seconds = int rand 100000; is parse_durationduration_exact$seconds, $seconds ;

WWW http//search.cpan.org/dist/Time-Duration-Parse/