Convert::Age(3)

πŸ“¦
version 0.04 Β· 2 versions
, in fedora 43

🌸 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 for Convert::Age::encode()
  • decode_age β€” synonym for Convert::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 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