perl-DT-0.5.0-alt1.noarch.rpm


Advertisement

Description

perl-DT - DWIM wrapper for DateTime

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package filename perl-DT-0.5.0-alt1.noarch.rpm
Package name perl-DT
Package version 0.5.0
Package release alt1
Package architecture noarch
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 11.07 KB
Installed size 11.07 KB
=for readme continue
DT is a very simple and thin wrapper over DateTime::Moonpig, which
in turn is a wrapper over DateTime. DateTime::Moonpig brings immutability
and saner operator overloading at the cost of cartoonish name but also
lacks date/time parsing capabilities that are badly needed all the time.
There is a myriad of helpful modules on CPAN but oh all that typing!
Consider:
use DateTime;
my $dt = DateTime->from_epoch(epoch => time);
use DateTime::Format::Pg;
my $dt = DateTime::Format::Pg->parse_datetime($timestamp_from_postgres);
use DateTime::Format::ISO8601;
my $dt = DateTime::Format::ISO8601->parse_datetime($iso_datetime);
Versus:
use DT ':pg';
my $dt_unix = DT->new(time);
my $dt_pg = DT->new($timestamp_from_postgres);
my $dt_iso = DT->new($iso_datetime);
DT constructor will try to Do What You Mean, and if it cannot it will
fall back to default DateTime constructor. Simple.
=for readme stop

Alternatives

Package Version Architecture Repository
perl-DT - - -

Requires

Name Value
/usr/share/perl5 -
perl(DateTime/Format/ISO8601.pm) >= 0.080
perl(DateTime/Format/ISO8601/Format.pm) >= 0.003
perl(DateTime/Format/Pg.pm) -
perl(DateTime/Moonpig.pm) >= 1.030
perl(Scalar/Util.pm) -
perl(Sub/Install.pm) -
perl(overload.pm) -
perl(parent.pm) >= 0.236
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(DT.pm) = 0.005
perl-DT = 0.5.0-alt1

Download

Type URL
Mirror ftp.altlinux.org
Binary Package perl-DT-0.5.0-alt1.noarch.rpm
Source Package perl-DT-0.5.0-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-DT rpm package:
    # sudo apt-get install perl-DT

Files

Path
/usr/share/doc/perl-DT-0.5.0/README
/usr/share/perl5/DT.pm

See Also

Package Description
perl-DVB-Carousel-0.22-alt1.noarch.rpm Handling of simple DVB carousel database used by ringelspiel
perl-DVB-Epg-0.51-alt1.noarch.rpm Generate MPEG-2 transport stream chunk containing DVB Event Information table
perl-DWH_File-0.24-alt1.noarch.rpm data and object persistence in deep and wide hashes
perl-Dackup-0.44-alt1.noarch.rpm Back up files over the network
perl-Daemon-Control-0.001010-alt1.noarch.rpm Create init scripts in Perl
perl-Daemon-Control-Plugin-HotStandby-0.0002-alt1.noarch.rpm Daemon::Control plugin to bring up new processes before disposing of the old ones
perl-Daemon-DaemonizeLight-0.04-alt1.noarch.rpm Make daemon from any perl script
perl-Daemon-Device-1.08-alt1.noarch.rpm Forking daemon device construct
perl-Daemon-Easy-0.02-alt1.noarch.rpm easily create a daemon
perl-Daemon-Mplayer-0.014-alt1.noarch.rpm Daemonize mplayer
perl-Daemon-Shutdown-0.13-alt1_5.noarch.rpm Shutdown Daemon
perl-Daemon-Shutdown-Monitor-transmission-0.004-alt1.noarch.rpm Daemon::Shutdown monitor plugin which checks for active transmission downloads
perl-Daemon-Simple-0.1-alt1.noarch.rpm Perl extension for making script as daemon with start|stop controlling on unix system
perl-Daemon-Whois-1.11-alt3_8.noarch.rpm A WHOIS daemon
perl-Daemonise-1.0_1-alt1.noarch.rpm Perl extension for convenience to daemonise a script
Advertisement
Advertisement