SYNOPSIS

      use Time::Duration::Parse::AsHash;
    
      my $res = parse_duration("2 minutes and 3 seconds"); # => {minutes=>2, seconds=>3}

DESCRIPTION

    Time::Duration::Parse::AsHash is like Time::Duration::Parse but it
    returns parsed period elements instead of number of seconds. There are
    some circumstances when you want this, e.g. when feeding into
    DateTime::Duration and you want to count for leap seconds.

    Also, unlike Time::Duration::Parse, seconds are not rounded by default.

FUNCTIONS

    parse_duration

        $res = parse_duration($string);

      Parses duration string and returns hash. This function is exported by
      default.

SEE ALSO

    Time::Duration::Parse

