Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-Time-Duration-1.210000-bp154.1.34 RPM for noarch

From OpenSuSE Leap 15.4 for noarch

Name: perl-Time-Duration Distribution: SUSE Linux Enterprise 15 SP4
Version: 1.210000 Vendor: openSUSE
Release: bp154.1.34 Build date: Mon May 9 11:05:36 2022
Group: Development/Libraries/Perl Build host: lamb25
Size: 39792 Source RPM: perl-Time-Duration-1.210000-bp154.1.34.src.rpm
Packager: https://bugs.opensuse.org
Url: https://metacpan.org/release/Time-Duration
Summary: Rounded or exact English expression of durations
This module provides functions for expressing durations in rounded or exact
terms.

In the first example in the Synopsis, using duration($interval_seconds):

If the 'time() - $start_time' is 3 seconds, this prints "Runtime: *3
seconds*.". If it's 0 seconds, it's "Runtime: *0 seconds*.". If it's 1
second, it's "Runtime: *1 second*.". If it's 125 seconds, you get "Runtime:
*2 minutes and 5 seconds*.". If it's 3820 seconds (which is exactly 1h, 3m,
40s), you get it rounded to fit within two expressed units: "Runtime: *1
hour and 4 minutes*.". Using duration_exact instead would return "Runtime:
*1 hour, 3 minutes, and 40 seconds*".

In the second example in the Synopsis, using ago($interval_seconds):

If the $age is 3 seconds, this prints "_file_ was modified *3 seconds
ago*". If it's 0 seconds, it's "_file_ was modified *just now*", as a
special case. If it's 1 second, it's "from *1 second ago*". If it's 125
seconds, you get "_file_ was modified *2 minutes and 5 seconds ago*". If
it's 3820 seconds (which is exactly 1h, 3m, 40s), you get it rounded to fit
within two expressed units: "_file_ was modified *1 hour and 4 minutes
ago*". Using ago_exact instead would return "_file_ was modified *1 hour, 3
minutes, and 40 seconds ago*". And if the file's modtime is, surprisingly,
three seconds into the future, $age is -3, and you'll get the equally and
appropriately surprising "_file_ was modified *3 seconds from now*."

Provides

Requires

License

Artistic-1.0 OR GPL-1.0-or-later

Changelog

* Sun May 12 2019 Stephan Kulow <coolo@suse.com>
  - updated to 1.21
    see /usr/share/doc/packages/perl-Time-Duration/Changes
    1.21 2019-05-11 NEILB
    - Added Time::Elapsed to SEE ALSO, suggested by Ron Savage in RT#122186.
    - Updated AUTHOR section to reflect that Neil Bowers is current maintainer.
    - Extended testsuite so there's full code coverage (not pod yet).
* Sun Apr 26 2015 coolo@suse.com
  - updated to 1.20
    see /usr/share/doc/packages/perl-Time-Duration/Changes
* Fri Apr 24 2015 coolo@suse.com
  - extend the version to 6 digits to avoid >= 1.06 not matching 1.1
* Tue Apr 14 2015 coolo@suse.com
  - updated to 1.1
    see /usr/share/doc/packages/perl-Time-Duration/ChangeLog
    2013-04-02  Avi Finkel     avi@finkel.org
    * Release 1.1 -- Adding millisecond support.
* Wed Dec 14 2011 coolo@suse.com
  - license is "perl"
* Fri Nov 18 2011 coolo@suse.com
  - use original .tar.gz
* Wed Dec 01 2010 coolo@novell.com
  - switch to perl_requires macro
* Mon Nov 29 2010 coolo@novell.com
  - remove /var/adm/perl-modules
* Sun Jan 10 2010 jengelh@medozas.de
  - enable parallel build
* Mon Dec 14 2009 aj@suse.de
  - Fix build to not run disabled tests.

Files

/usr/lib/perl5/vendor_perl/5.26.1/Time
/usr/lib/perl5/vendor_perl/5.26.1/Time/Duration.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Time-Duration
/usr/share/doc/packages/perl-Time-Duration/Changes
/usr/share/doc/packages/perl-Time-Duration/README
/usr/share/licenses/perl-Time-Duration
/usr/share/licenses/perl-Time-Duration/LICENSE
/usr/share/man/man3/Time::Duration.3pm.gz


Generated by rpm2html 1.8.1

Fabrice Bellet, Tue Apr 9 17:06:41 2024