Parse string that represents time duration
Time::Duration::Parse 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 Time::Duration and is
roundtrip safe. So, the following is always true.
use Time::Duration::Parse;
use Time::Duration;
my $seconds = int rand 100000;
is( parse_duration(duration_exact($seconds)), $seconds );
- Developed at devel:languages:perl
- Sources inherited from project openSUSE:Factory
-
2
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Factory:ARM/perl-Time-Duration-Parse && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
Time-Duration-Parse-0.11.tar.gz | 0000010908 10.7 KB | |
perl-Time-Duration-Parse.changes | 0000001614 1.58 KB | |
perl-Time-Duration-Parse.spec | 0000002164 2.11 KB |
Revision 9 (latest revision is 14)
Stephan Kulow (coolo)
accepted
request 250232
from
Stephan Kulow (coolo)
(revision 9)
- updated to 0.11 - Min perl version now set to 5.6.0 - Added description of DateTime::Format::Duration to SEE ALSO 0.10 2014-03-24 - Switched to Dist::Zilla. The Module::Install Makefile.PL was resulting in dependency problems and CPAN Testers fails, and I'm not familiar with it. Easier to switch. Thanks to ZEFRAM for pointing out the problem. 0.09 2014-03-23 - Test::More and Time::Duration were listed as build_requires; changed them to test_requires, with versions. Wonder if this was the cause of the small number of CPAN Testers fails? - Added more more modules to the SEE ALSO section in the pod. 0.08 2014-03-23 - Can now have a leading '+', as in '+2h'. Suggested by MSCHWERN in RT#66572 - Added github repo to metadata (thanks dsteinbrunner) - Added github repo to pod - Added Time::Duration::Parse::More to SEE ALSO 0.07 2014-03-21 - Added 'use warnings' - Specified min perl version as 5.6.0 in Makefile.PL - Fixed pod error reported in RT#86904 - Added license type 'perl' to metadata via Makefile.PL - Reformatted this file as per CPAN::Changes::Spec
Comments 0