Bug#476410: ITP: libtime-duration-parse-perl -- Parse string that represents time duration
Package: wnpp
Severity: wishlist
Owner: AGOSTINI Yves <agostini@univ-metz.fr>
* Package name : libtime-duration-parse-perl
Version : 0.05
Upstream Author : Tatsuhiko Miyagawa <miyagawa@bulknews.net>
* URL : http://search.cpan.org/dist/Time-Duration-Parse/
* License : Perl
Programming Lang: Perl
Description : 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 );
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.18-5-xen-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Reply to: