Skip Menu |

This queue is for tickets about the DateManip CPAN distribution.

Report information
The Basics
Id: 23726
Status: resolved
Priority: 0/
Queue: DateManip

People
Owner: Nobody in particular
Requestors: roseycpanbug.20.ftumsh [...] spamgourmet.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Date::Manip 5.44 Bug
Date: Thu, 30 Nov 2006 17:23:07 +0000
To: bug-DateManip [...] rt.cpan.org
From: roseycpanbug.20.ftumsh [...] spamgourmet.com
Sorry for the lack of info. Below is the code. When I run it with version 5.44 I get this as output: Sat Aug 19 00:00:00 2006 1155945600 When I run it with version 5.42a I get this as the output: Mon Aug 21 08:00:00 2006 1156147200 Nothing changes except a make install between the runs. #!/usr/bin/perl -w use strict; use diagnostics; use Date::Manip; my $DATA = '17/Aug/06'; my $deldate = $DATA; my $data = UnixDate( DateCalc($deldate, '+2 business days') , '%s'); print "\n",scalar(gmtime($data)), " $data\n"; john@darkstarpc:~$ perl -V Summary of my perl5 (revision 5 version 8 subversion 5) configuration: Platform: osname=linux, osvers=2.6.3, archname=i686-linux-ld uname='linux darkstar 2.6.3 #1 mon mar 1 12:13:05 gmt 2004 i686 unknown ' config_args='' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=define usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-fno-strict-aliasing -pipe -I/usr/include' ccversion='', gccversion='3.2.2', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='long double', nvsize=12, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags ='-L/usr/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc libc=/lib/libc-2.3.2.so, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='2.3.2' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.5/i686-linux-ld/CORE' cccdlflags='-fpic', lddlflags='-shared -L/usr/lib' Characteristics of this binary (from libperl): Compile-time options: USE_LONG_DOUBLE USE_LARGE_FILES Built under linux Compiled at Sep 22 2004 11:16:48 @INC: /usr/lib/perl5/5.8.5/i686-linux-ld /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i686-linux-ld /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .
From: explorer [...] joaquinferrero.com
On Jue. Nov. 30 12:30:51 2006, roseycpanbug.20.ftumsh@spamgourmet.com wrote: Show quoted text
> Sorry for the lack of info. > > Below is the code. > > When I run it with version 5.44 I get this as output: > > Sat Aug 19 00:00:00 2006 1155945600 > > When I run it with version 5.42a I get this as the output: > > Mon Aug 21 08:00:00 2006 1156147200 > > Nothing changes except a make install between the runs. > > #!/usr/bin/perl -w > > use strict; > use diagnostics; > > use Date::Manip; > > my $DATA = '17/Aug/06'; > my $deldate = $DATA; > > my $data = UnixDate( DateCalc($deldate, '+2 business days') , '%s'); > > print "\n",scalar(gmtime($data)), " $data\n"; >
Inline Mode Delta Times don't work with Date::Manip 5.44. Please see bug #14762: http://rt.cpan.org/Public/Bug/Display.html?id=14762
Fixed in 5.45