perl-DateTimeX-Auto-0.009-alt1.noarch.rpm


Advertisement

Description

perl-DateTimeX-Auto - use DateTime without needing to call constructors

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package filename perl-DateTimeX-Auto-0.009-alt1.noarch.rpm
Package name perl-DateTimeX-Auto
Package version 0.009
Package release alt1
Package architecture noarch
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 35.99 KB
Installed size 35.99 KB
the DateTime manpage is awesome, but constructing `DateTime' objects can be
annoying. You often need to use one of the formatter modules, or call
`DateTime->new()' with a bunch of values. If you've got a bunch of
constant dates in your code, then `DateTimeX::Auto' makes all this a bit
simpler.
It uses the overload manpage to overload the `q()' operator, automatically
turning all string constants that match particular regular expressions
into `DateTime' objects. It also overloads stringification to make sure
that `DateTime' objects get stringified back to exactly the format they
were given in.
The date formats supported are:
yyyy-mm-dd
yyyy-mm-ddZ
yyyy-mm-ddThh:mm:ss
yyyy-mm-ddThh:mm:ssZ
The optional trailing 'Z' puts the datetime into the UTC timezone. Otherwise
the datetime will be in DateTime's default (floating) timezone.
Fractional seconds are also supported, to an arbitrary number of decimal
places. However, as `DateTime' only supports nanosecond precision, any
digits after the ninth will be zeroed out.
my $dt         ='1234-12-12T12:34:56.123456789123456789';
print "$dt\n"; # 1234-12-12T12:34:56.123456789000000000
Objects are blessed into the `DateTimeX::Auto' class which inherits
from `DateTime'. They use the UNIVERSAL::ref manpage to masquerade as plain
`DateTime' objects.
print ref('2000-01-01')."\n";   # DateTime
Additionally, ISO 8601 durations are supported:
my $dt = '2000-01-01';
say( $dt + 'P4Y2M12D' );  # 2004-03-13
Durations are possibly not quite as clever at preserving the incoming
string formatting.

Alternatives

Package Version Architecture Repository
perl-DateTimeX-Auto - - -

Requires

Name Value
/usr/share/perl5 -
perl(DateTime.pm) -
perl(DateTime/Duration.pm) -
perl(DateTime/Format/Strptime.pm) -
perl(Exporter/Shiny.pm) >= 0.036
perl(constant.pm) -
perl(overload.pm) -
perl(parent.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(DateTimeX/Auto.pm) = 0.009
perl-DateTimeX-Auto = 0.009-alt1

Download

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

Files

Path
/usr/share/doc/perl-DateTimeX-Auto-0.009/COPYRIGHT
/usr/share/doc/perl-DateTimeX-Auto-0.009/CREDITS
/usr/share/doc/perl-DateTimeX-Auto-0.009/Changes
/usr/share/doc/perl-DateTimeX-Auto-0.009/LICENSE
/usr/share/doc/perl-DateTimeX-Auto-0.009/README
/usr/share/doc/perl-DateTimeX-Auto-0.009/examples/example.pl
/usr/share/perl5/DateTimeX/Auto.pm

See Also

Package Description
perl-DateTimeX-Duration-Lite-0.002-alt1.noarch.rpm Duration objects for date math (lite version)
perl-DateTimeX-Duration-SkipDays-0.002-alt1.noarch.rpm Given a starting date, a number of days and a list of days to be skipped, returns the date X number
perl-DateTimeX-Easy-0.089-alt1_22.noarch.rpm Parse a date/time string using the best method available
perl-DateTimeX-Factory-1.00-alt1.noarch.rpm DateTime factory module with default options
perl-DateTimeX-Fiscal-Fiscal5253-2.01-alt1.noarch.rpm Perl extension for DateTime
perl-DateTimeX-Format-1.04-alt1.noarch.rpm Moose Roles for building next generation DateTime formats
perl-DateTimeX-Format-Ago-0.005-alt1.noarch.rpm I should have written this module "3 years ago"!
perl-DateTimeX-Format-Excel-0.14.0-alt1.noarch.rpm Microsofty conversion of Excel epochs
perl-DateTimeX-ISO8601-Interval-0.004-alt1.noarch.rpm Provides a means of parsing and manipulating ISO-8601 intervals and durations
perl-DateTimeX-Immutable-0.36-alt1.noarch.rpm An immutable subclass of DateTime
perl-DateTimeX-Lite-0.00004-alt1.noarch.rpm A Low Calorie DateTime
perl-DateTimeX-Mashup-Shiras-0.36.6-alt1.noarch.rpm A Moose role with four date attributes
perl-DateTimeX-Moment-0.06-alt1.noarch.rpm EXPERIMENTAL DateTime like interface for Time::Moment
perl-DateTimeX-Period-0.03-alt1.noarch.rpm Provides safe methods to get start and end of period
perl-DateTimeX-Seinfeld-1.000-alt1.noarch.rpm Calculate Seinfeld chain length
Advertisement
Advertisement