NAME
Convert::Age - convert integer seconds into a "compact" form and back.
VERSION
Version 0.01
SYNOPSIS
use Convert::Age;
my $c = Convert::Age::encode(189988007); # 6y7d10h26m47s
my $d = Convert::Age::decode('5h37m5s'); # 20225
EXPORT
- encode_age
-
synonym for Convert::Age::encode()
- decode_age
-
synonym for Convert::Age::decode()
FUNCTIONS
encode
convert seconds into a "readable" format 344 => 5m44s
encode_age
synonym for encode that can be exported
decode
convert the "readable" format into seconds
decode_age
synonym for encode that can be exported
AUTHOR
Chris Fedde, <cfedde at cpan.org>
BUGS
Please report any bugs or feature requests to bug-convert-age at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Convert-Age. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Convert::Age
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
RT: CPAN's request tracker
Search CPAN
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2007 Chris Fedde, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.