Package: perl-Time-Duration (1.210000-bp156.3.1)
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*."
Package information
- Homepage
- [https://metacpan.org/release/Time-Duration]
- License
- Artistic-1.0 OR GPL-1.0-or-later
- Downstream package maintainer
- Unknown: not reported in the indexed source
- Source package
- [perl-Time-Duration]
- Software project
- [libtime-duration-perl]
Versions and downloads for perl-Time-Duration
| Version / release | Architecture / repository | Package size | Installed size | Files | Publisher repository artifact |
|---|---|---|---|---|---|
| 1.210000-bp156.3.1leap-15.6 / oss | noarchopenSUSE Leap 15.6 · OSS · multi-architecture | 27 KiB | 39 KiB | list of files | perl-Time-Duration-1.210000-bp156.3.1.noarch.rpm |
About these downloads
Each row is recorded package-index metadata for one version, architecture, suite, and repository. Names, URLs, and sizes are source-reported; a link is a potentially mutable retrieval location, not an OpenFactory redistribution claim or proof that OpenFactory retained the artifact bytes.
Dependencies and recommendations for perl-Time-Duration
dep: perl(:MODULE_COMPAT_5.26.1)
Package not available
Package file paths (9)
Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.
- /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
Field source: openSUSE Leap 15.6 OSS
