Time::Duration::sv - rounded or exact Swedish expression of durations


Time-Duration-sv documentation  | view source Contained in the Time-Duration-sv distribution.

Index


NAME

Top

Time::Duration::sv - rounded or exact Swedish expression of durations

SYNOPSIS

Top

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);

DESCRIPTION

Top

This module provides functions for expressing durations in rounded or exact terms.

SEE ALSO

Top

Time::Duration, the English original, for a complete manual.

COPYRIGHT AND DISCLAIMER

Top

AUTHOR

Top

Arthur Bergman, abergman@cpan.org


Time-Duration-sv documentation  | view source Contained in the Time-Duration-sv distribution.