Skip Menu |

This queue is for tickets about the Class-Date CPAN distribution.

Report information
The Basics
Id: 115753
Status: resolved
Priority: 0/
Queue: Class-Date

People
Owner: Nobody in particular
Requestors: ashrub [...] yandex.ru
Cc:
AdminCc:

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



Subject: Not correct comparing
Hello, perl -E 'use Class::Date qw(date); my $dt1 = date "2016-06-30 13:00"; my $dt2 = date "2016-06-30 13:20"; say 1 if (dt2 == dt1);' return 1, but dates is not equal I test on Ubuntu 14.04.4 This is perl 5, version 22, subversion 0 (v5.22.0) built for x86_64-linux and Debian GNU/Linux 8.5 (jessie) This is perl 5, version 20, subversion 2 (v5.20.2) built for x86_64-linux-gnu-thread-multi
SOrry, it misprint in condition, right way: perl -E 'use Panda::Date qw(date); my $dt1 = date "2016-06-30 13:00"; my $dt2 = date "2016-06-30 13:20"; say 1 if ($dt2 == $dt1);'
Hi, Show quoted text
> > perl -E 'use Panda::Date qw(date); my $dt1 = date "2016-06-30 13:00"; > my $dt2 = date "2016-06-30 13:20"; say 1 if ($dt2 == $dt1);'
Where is Panda::Date coming from? If we change it to Class::Date above, I get expected result. Not sure how to get result you are getting, Best Regards, Mohammad S Anwar
Please close the ticket, it was my mistake, I'am sorry