Time::Duration::sv - rounded or exact Swedish expression of durations
Example use in a program that ends by noting its runtime:
my $start_time = time(); use Time::Duration::sv; # then things that take all that time, and then ends: print "Runtime ", duration(time() - $start_time), ".\n";
Example use in a program that reports age of a file:
use Time::Duration::sv; my $file = 'that_file'; my $age = $^T - (stat($file))[9]; # 9 = modtime print "$file was modified ", ago($age);
This module provides functions for expressing durations in rounded or exact terms.
Time::Duration, the English original, for a complete manual.
Copyright 2002, Arthur Bergman abergman@cpan.org, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
abergman@cpan.org
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
Large parts of the code is Copyright 2002 Sean M. Burke.
Arthur Bergman, abergman@cpan.org
To install Time::Duration::sv, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Time::Duration::sv
CPAN shell
perl -MCPAN -e shell install Time::Duration::sv
For more information on module installation, please visit the detailed CPAN module installation guide.