perl-Time-Ago-1.00-alt1.noarch.rpm


Advertisement

Description

perl-Time-Ago - Approximate duration in words

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Time-Ago
Package version 1.00
Package release alt1
Package architecture noarch
Package type rpm
Installed size 48.39 KB
Download size 48.39 KB
Official Mirror ftp.altlinux.org
Given a duration, in seconds, returns a readable approximation.
This a Perl port of the time_ago_in_words() helper from Rails.
From Rails' docs:
0 <-> 29 secs
less than a minute
30 secs <-> 1 min, 29 secs
1 minute
1 min, 30 secs <-> 44 mins, 29 secs
[2..44] minutes
44 mins, 30 secs <-> 89 mins, 29 secs
about 1 hour
89 mins, 30 secs <-> 23 hrs, 59 mins, 29 secs
about [2..24] hours
23 hrs, 59 mins, 30 secs <-> 41 hrs, 59 mins, 29 secs
1 day
41 hrs, 59 mins, 30 secs <-> 29 days, 23 hrs, 59 mins, 29 secs
[2..29] days
29 days, 23 hrs, 59 mins, 30 secs <-> 44 days, 23 hrs, 59 mins, 29 secs
about 1 month
44 days, 23 hrs, 59 mins, 30 secs <-> 59 days, 23 hrs, 59 mins, 29 secs
about 2 months
59 days, 23 hrs, 59 mins, 30 secs <-> 1 yr minus 1 sec
[2..12] months
1 yr <-> 1 yr, 3 months
about 1 year
1 yr, 3 months <-> 1 yr, 9 months
over 1 year
1 yr, 9 months <-> 2 yr minus 1 sec
almost 2 years
2 yrs <-> max time or date
(same rules as 1 yr)

Alternatives

Package Version Architecture Repository
perl-Time-Ago - - -

Requires

Name Value
/usr/share/perl5 -
perl(Encode.pm) -
perl(Locale/Messages.pm) -
perl(Locale/TextDomain.pm) -
perl(Scalar/Util.pm) -
perl(constant.pm) -
perl(utf8.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Time/Ago.pm) = 1.0
perl-Time-Ago = 1.00-alt1

Download

Type URL
Binary Package perl-Time-Ago-1.00-alt1.noarch.rpm
Source Package perl-Time-Ago-1.00-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Time-Ago rpm package:
    # sudo apt-get install perl-Time-Ago

Files

Path
/usr/share/doc/perl-Time-Ago-1.00/Changes
/usr/share/doc/perl-Time-Ago-1.00/LICENSE
/usr/share/doc/perl-Time-Ago-1.00/README
/usr/share/doc/perl-Time-Ago-1.00/README.md
/usr/share/perl5/LocaleData/ar/
/usr/share/perl5/LocaleData/ar/LC_MESSAGES/Time-Ago.mo
/usr/share/perl5/LocaleData/de/
/usr/share/perl5/LocaleData/de/LC_MESSAGES/Time-Ago.mo
/usr/share/perl5/LocaleData/es/
/usr/share/perl5/LocaleData/es/LC_MESSAGES/Time-Ago.mo
/usr/share/perl5/LocaleData/fr/
/usr/share/perl5/LocaleData/fr/LC_MESSAGES/Time-Ago.mo
/usr/share/perl5/LocaleData/it/
/usr/share/perl5/LocaleData/it/LC_MESSAGES/Time-Ago.mo
/usr/share/perl5/LocaleData/ja/
/usr/share/perl5/LocaleData/ja/LC_MESSAGES/Time-Ago.mo
/usr/share/perl5/LocaleData/nl/
/usr/share/perl5/LocaleData/nl/LC_MESSAGES/Time-Ago.mo
/usr/share/perl5/LocaleData/ru/
/usr/share/perl5/LocaleData/ru/LC_MESSAGES/Time-Ago.mo
/usr/share/perl5/Time/Ago.pm

See Also

Package Description
perl-Time-AutoRes-0.02-alt1.noarch.rpm perl module Time-AutoRes
perl-Time-Avail-1.00-alt1.noarch.rpm perl module Time-Avail
perl-Time-Available-0.05-alt1.noarch.rpm Perl extension to calculate time availability
perl-Time-Business-0.18-alt1.noarch.rpm Business Time Between Two Times
perl-Time-C-0.024-alt1.noarch.rpm Convenient time manipulation
perl-Time-Checkpoint-0.36-alt1.noarch.rpm Time-based checkpoints / deltas
perl-Time-Checkpoint-Sequential-0.002-alt1.noarch.rpm Report timing between checkpoints in code
perl-Time-Clock-1.03-alt1_13.noarch.rpm Twenty-four hour clock object with nanosecond precision
perl-Time-Concise-1.1-alt1.noarch.rpm perl module Time-Concise
perl-Time-Consts-0.05-alt1.noarch.rpm perl module Time-Consts
perl-Time-Crontab-0.04-alt1.noarch.rpm parser for crontab date and time field
perl-Time-Date-0.05-alt1.noarch.rpm A time and date object for Perl
perl-Time-DayOfWeek-1.8-alt1.noarch.rpm calculate which Day-of-Week a date is
perl-Time-DayOfWeek-scripts-1.8-alt1.noarch.rpm Time-DayOfWeek scripts
perl-Time-Decimal-0.07-alt1.noarch.rpm perl module Time-Decimal
Advertisement
Advertisement