diff options
author | Cheng-Lung Sung <clsung@FreeBSD.org> | 2006-07-19 01:08:19 +0000 |
---|---|---|
committer | Cheng-Lung Sung <clsung@FreeBSD.org> | 2006-07-19 01:08:19 +0000 |
commit | f7e724f6bb5b559de7697249574bcf50ccfb85d4 (patch) | |
tree | 89f89931ef028bd20dbc5293c0f31429022759c0 /devel/p5-Time-Duration-Parse/pkg-descr | |
parent | 117d600017e28b65f51af59d5d00696e1722570e (diff) | |
download | ports-f7e724f6bb5b559de7697249574bcf50ccfb85d4.tar.gz ports-f7e724f6bb5b559de7697249574bcf50ccfb85d4.zip |
Add p5-Time-Duration-Parse 0.02, parse string that represents time
duration.
PR: ports/100470
Submitted by: Gea-Suan Lin <gslin at gslin.org>
Notes
Notes:
svn path=/head/; revision=168192
Diffstat (limited to 'devel/p5-Time-Duration-Parse/pkg-descr')
-rw-r--r-- | devel/p5-Time-Duration-Parse/pkg-descr | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/p5-Time-Duration-Parse/pkg-descr b/devel/p5-Time-Duration-Parse/pkg-descr new file mode 100644 index 000000000000..87ea105296ae --- /dev/null +++ b/devel/p5-Time-Duration-Parse/pkg-descr @@ -0,0 +1,13 @@ +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 ); + +WWW: http://search.cpan.org/dist/Time-Duration-Parse/ |