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
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:
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.


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


Name Value
/usr/share/perl5 -
perl( -
perl(DateTime/ -
perl(DateTime/Format/ -
perl(Exporter/ >= 0.036
perl( -
perl( -
perl( -
rpmlib(PayloadIsLzma) -


Name Value
perl(DateTimeX/ = 0.009
perl-DateTimeX-Auto = 0.009-alt1


Type URL
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] noarch autoimports
    rpm [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



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