Skip Menu |

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

Report information
The Basics
Id: 107826
Status: rejected
Priority: 0/
Queue: Genealogy-Gedcom-Date

People
Owner: Nobody in particular
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.16
Fixed in: 2.01



Subject: Doesn't cope with dates two mellenia ago
Maybe version 2.0 will fix this, but it's still a good test case. hornenj@ncbimac2027:~/tmp$ cat bar #!/usr/bin/env perl use Genealogy::Gedcom::Date; my $d = Genealogy::Gedcom::Date->new(); my $h = $d->parse_date_value(date => '1 Jan 1000'); print $h->{one_date}->strftime('%Y'), "\n"; my $h = $d->parse_date_value(date => '1 Jan 900'); print $h->{one_date}->strftime('%Y'), "\n"; hornenj@ncbimac2027:~/tmp$ ./bar 1000 1900 hornenj@ncbimac2027:~/tmp$ It should print 1000 then 900.
Subject: Re: [rt.cpan.org #107826] Doesn't cope with dates two mellenia ago
Date: Sat, 17 Oct 2015 09:44:08 +1100
To: bug-Genealogy-Gedcom-Date [...] rt.cpan.org
From: Ron Savage <ron [...] savage.net.au>
Hi Nigel On 17/10/15 05:24, Nigel Horne via RT wrote: Show quoted text
> Fri Oct 16 14:24:28 2015: Request 107826 was acted upon.
[snip] Show quoted text
> hornenj@ncbimac2027:~/tmp$ cat bar > #!/usr/bin/env perl > > use Genealogy::Gedcom::Date; > > my $d = Genealogy::Gedcom::Date->new(); > > my $h = $d->parse_date_value(date => '1 Jan 1000'); > print $h->{one_date}->strftime('%Y'), "\n"; > > my $h = $d->parse_date_value(date => '1 Jan 900'); > print $h->{one_date}->strftime('%Y'), "\n"; > hornenj@ncbimac2027:~/tmp$ ./bar > 1000 > 1900 > hornenj@ncbimac2027:~/tmp$ > > It should print 1000 then 900.
Handled effortlessly by the new code. Thanx. -- Ron Savage - savage.net.au
I've completely re-written the code. See V 2.01 for details.