Convert::Age(3)
πΈ Convert::Age β the Convert::Age(3) page, but make it cute πΈ
okay so bestie, this is a User Contributed Perl Documentation page for a lil module called Convert::Age. it's giving "I just want my seconds to look pretty" energy and honestly? same. π
β¨ NAME β¨
Convert::Age β convert integer seconds into a "compact" form and back. π¦
π VERSION π
Version 0.04
π SYNOPSIS π
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
no cap, that's the whole vibe. encode in, decode out, and if you'd rather have the functions exported into your own lil namespace, qw(encode_age decode_age) has you covered. π«Ά
π EXPORT π
encode_ageβ synonym forConvert::Age::encode()decode_ageβ synonym forConvert::Age::decode()
π§ NOTE π§
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.
so like, it's not trying to be a whole calendar system, she's just doing cute little math. periodt. π
π 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
π yes that's literally what the docs say for decode_age. we don't ask questions, we just read the page. iykyk. π
πΈ 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.
like, bestie, if something's busted, tell the man. he'll know, then you'll know. it's a whole notification situation and it's lowkey iconic. β¨
π 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
<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>
π ACKNOWLEDGEMENTS π
(that's it. that's the section. she's empty. main character silence. π)
π 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.
and that's the whole page, bestie π«Ά written by perl v5.42.0 on 2025-07-25. go forth and convert your seconds. slay. πβ¨
π¦ where this page comes from
- fedora 43: perl-Convert-Age 0.04-36.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms