1Convert::Age(3)       User Contributed Perl Documentation      Convert::Age(3)
2
3
4

NAME

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

VERSION

9       Version 0.04
10

SYNOPSIS

12           use Convert::Age;
13
14           my $c = Convert::Age::encode(189988007); # 6y7d10h26m47s
15           my $d = Convert::Age::decode('5h37m5s'); # 20225
16
17           # or export functions
18
19           use Convert::Age qw(encode_age decode_age);
20
21           my $c = encode_age(20225); # 5h37m5s
22           my $d = decode_age('5h37m5s'); # 5h37m5s
23

EXPORT

25       encode_age
26           synonym for Convert::Age::encode()
27
28       decode_age
29           synonym for Convert::Age::decode()
30

NOTE

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

FUNCTIONS

37   encode
38       convert seconds into a "readable" format 344 => 5m44s
39
40   encode_age
41       synonym for encode that can be exported
42
43   decode
44       convert the "readable" format into seconds
45
46   decode_age
47       synonym for encode that can be exported
48

AUTHOR

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

BUGS

53       Please report any bugs or feature requests to "bug-convert-age at
54       rt.cpan.org", or through the web interface at
55       <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Convert-Age>.  I will
56       be notified, and then you'll automatically be notified of progress on
57       your bug as I make changes.
58

SUPPORT

60       You can find documentation for this module with the perldoc command.
61
62           perldoc Convert::Age
63
64       You can also look for information at:
65
66       ·   AnnoCPAN: Annotated CPAN documentation
67
68           <http://annocpan.org/dist/Convert-Age>
69
70       ·   CPAN Ratings
71
72           <http://cpanratings.perl.org/d/Convert-Age>
73
74       ·   RT: CPAN's request tracker
75
76           <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Convert-Age>
77
78       ·   Search CPAN
79
80           <http://search.cpan.org/dist/Convert-Age>
81

ACKNOWLEDGEMENTS

84       Copyright 2007 Chris Fedde, all rights reserved.
85
86       This program is free software; you can redistribute it and/or modify it
87       under the same terms as Perl itself.
88
89
90
91perl v5.30.1                      2020-01-29                   Convert::Age(3)
Impressum