GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Convert::Age(3) User Contributed Perl Documentation Convert::Age(3)

Convert::Age - convert integer seconds into a "compact" form and back.

Version 0.04

    use Convert::Age;
    my $c = Convert::Age::encode(189988007); # 6y7d10h26m47s
    my $d = Convert::Age::decode('5h37m5s'); # 20225
    # or export functions
    use Convert::Age qw(encode_age decode_age);
    my $c = encode_age(20225); # 5h37m5s
    my $d = decode_age('5h37m5s'); # 5h37m5s

synonym for Convert::Age::encode()
synonym for Convert::Age::decode()

The methods in this module are suitable for some kinds of logging and input/output conversions. It achieves the conversion through simple remainder arithmetic and the length of a year as 365.2425 days.

convert seconds into a "readable" format 344 => 5m44s

synonym for encode that can be exported

convert the "readable" format into seconds

synonym for encode that can be exported

Chris Fedde, "<cfedde at cpan.org>"

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.

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

    <http://annocpan.org/dist/Convert-Age>

  • CPAN Ratings

    <http://cpanratings.perl.org/d/Convert-Age>

  • RT: CPAN's request tracker

    <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Convert-Age>

  • Search CPAN

    <http://search.cpan.org/dist/Convert-Age>

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.

2008-05-18 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.