Number::Compare::Duration - numeric comparisons of time durations
Version 0.001
Number::Compare::Duration->new('>10d')->(86400 * 9); # false, 9 days is not more than 10
See Number::Compare for a basic description.
Number::Compare::Duration uses different magnitudes than Number::Compare. They are: s for seconds, m for minutes, h for hours, d for days. No accounting for daylight savings is done; each day is 86400 seconds. The default magnitude is s (seconds).
s
m
h
d
Hans Dieter Pearcey, <hdp at cpan.org>
<hdp at cpan.org>
Please report any bugs or feature requests to bug-number-compare-duration at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Number-Compare-Duration. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-number-compare-duration at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Number::Compare::Duration
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Number-Compare-Duration
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Number-Compare-Duration
CPAN Ratings
http://cpanratings.perl.org/d/Number-Compare-Duration
Search CPAN
http://search.cpan.org/dist/Number-Compare-Duration
Number::Compare
Copyright 2008 Hans Dieter Pearcey, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Number::Compare::Duration, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Number::Compare::Duration
CPAN shell
perl -MCPAN -e shell install Number::Compare::Duration
For more information on module installation, please visit the detailed CPAN module installation guide.