Burak Gürsoy > Time-Elapsed-0.29 > Time::Elapsed

Download:
Time-Elapsed-0.29.tar.gz

Dependencies

Annotate this POD

Related Modules

Time::Fuzzy
Time::Seconds
more...
By perlmonks.org

CPAN RT

Open  0
Report a bug
Module Version: 0.29   Source  

NAME ^

Time::Elapsed - Displays the elapsed time as a human readable string.

SYNOPSIS ^

   use Time::Elapsed qw( elapsed );
   $t = 1868401;
   print elapsed( $t );

prints:

   21 days, 15 hours and 1 second

If you set the language to turkish:

   print elapsed( $t, 'TR' );

prints:

   21 gün, 15 saat ve 1 saniye

DESCRIPTION ^

This document describes version 0.29 of Time::Elapsed released on 23 April 2009.

This module transforms the elapsed seconds into a human readable string. It can be used for (for example) rendering uptime values into a human readable form. The resulting string will be an approximation. See the "CAVEATS" section for more information.

IMPORT PARAMETERS ^

This module does not export anything by default. You have to specify import parameters. :all key does not include import commands.

FUNCTIONS

   elapsed

KEYS

   :all

COMMANDS

   Parameter   Description
   ---------   -----------
   -compile    All available language data will immediately be compiled
               and placed into an internal cache.

FUNCTIONS ^

elapsed SECONDS [, LANG ]

CAVEATS ^

SEE ALSO ^

PTools::Time::Elapsed, DateTime, DateTime::Format::Duration, Time::Duration.

AUTHOR ^

Burak Gürsoy, <burak@cpan.org>

COPYRIGHT ^

Copyright 2007-2008 Burak Gürsoy. All rights reserved.

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.