1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
Source: libtime-duration-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Uploaders: Ivan Kohler <ivan-debian@420.am>,
gregor herrmann <gregoa@debian.org>,
Xavier Guimard <yadd@debian.org>,
Florian Schlichting <fsfs@debian.org>
Section: perl
Testsuite: autopkgtest-pkg-perl
Priority: optional
Build-Depends: debhelper-compat (= 12)
Build-Depends-Indep: perl
Standards-Version: 4.4.0
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libtime-duration-perl
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libtime-duration-perl.git
Homepage: https://metacpan.org/release/Time-Duration
Package: libtime-duration-perl
Architecture: all
Depends: ${misc:Depends},
${perl:Depends}
Description: module for rounded or exact English expression of durations
Time::Duration provides functions for expressing time spans in rounded
or exact terms. So while
.
say duration_exact(86399);
.
will correctly give "23 hours, 59 minutes, and 59 seconds",
.
say ago(86399);
.
will output the rounded time span as "1 day ago".
.
The provided functions are duration(), ago(), from_now(), later() and
earlier(), along with their *_exact counterparts. The precision used
for rounding can be specified, and version 1.10 added a millisecond
mode.
|