Skip Menu |
 

This queue is for tickets about the DateTime-Set CPAN distribution.

Report information
The Basics
Id: 20789
Status: resolved
Priority: 0/
Queue: DateTime-Set

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

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



Subject: from_recurrence
Download (untitled) / with headers
text/plain 371b
The DateTime::Set POD gives the following example: $months = DateTime::Set->from_recurrence( span => $dt_span_this_year, # optional span recurrence => sub { return $_[0]->truncate( to => 'month' )->add( months => 1 ) }, ); Without the "optional span", I get: Can't call method "truncate" on an undefined value ...
Subject: Re: [rt.cpan.org #20789] from_recurrence
Date: Tue, 1 Aug 2006 14:42:10 -0300
To: bug-DateTime-Set [...] rt.cpan.org
From: "Flavio S. Glock" <fglock [...] gmail.com>
Download (untitled) / with headers
text/plain 1.2k
It just works here. This is my test case - tested with DateTime 0.32 and DateTime::Set 0.25 (latest cpan versions): use DateTime::Set; use strict; my $months = DateTime::Set->from_recurrence( # span => $dt_span_this_year, # optional span recurrence => sub { return $_[0]->truncate( to => 'month' )->add( months => 1 ) }, ); my $dt = DateTime->now; print $months->next( $dt ); - Flavio S. Glock 2006/8/1, lee via RT <bug-DateTime-Set@rt.cpan.org>: Show quoted text
> > Tue Aug 01 08:14:21 2006: Request 20789 was acted upon. > Transaction: Ticket created by LGODDARD > Queue: DateTime-Set > Subject: from_recurrence > Broken in: 0.25 > Severity: Critical > Owner: Nobody > Requestors: LGODDARD@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=20789 > > > > The DateTime::Set POD gives the following example: > > $months = DateTime::Set->from_recurrence( > span => $dt_span_this_year, # optional span > recurrence => sub { > return $_[0]->truncate( to => 'month' )->add( months => > 1 ) > }, > ); > > Without the "optional span", I get: Can't call method "truncate" on an > undefined value ... > >
Subject: Re: [rt.cpan.org #20789] from_recurrence
Date: Tue, 01 Aug 2006 19:21:51 +0100
To: bug-DateTime-Set [...] rt.cpan.org
From: Lee Goddard <lee [...] leegoddard.net>
Download (untitled) / with headers
text/plain 1.6k
Sorry Flavio, I thought I closed my own ticket: it was operator error. But thanks for your fast reply - and your essential addition to DateTime! Flavio S. Glock via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=20789 > > > It just works here. This is my test case - tested with DateTime 0.32 > and DateTime::Set 0.25 (latest cpan versions): > > use DateTime::Set; > use strict; > my $months = DateTime::Set->from_recurrence( > # span => $dt_span_this_year, # optional span > recurrence => sub { > return $_[0]->truncate( to => 'month' )->add( months => 1 ) > }, > ); > my $dt = DateTime->now; > print $months->next( $dt ); > > - Flavio S. Glock > > 2006/8/1, lee via RT <bug-DateTime-Set@rt.cpan.org>: >
>> Tue Aug 01 08:14:21 2006: Request 20789 was acted upon. >> Transaction: Ticket created by LGODDARD >> Queue: DateTime-Set >> Subject: from_recurrence >> Broken in: 0.25 >> Severity: Critical >> Owner: Nobody >> Requestors: LGODDARD@cpan.org >> Status: new >> Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=20789 > >> >> >> The DateTime::Set POD gives the following example: >> >> $months = DateTime::Set->from_recurrence( >> span => $dt_span_this_year, # optional span >> recurrence => sub { >> return $_[0]->truncate( to => 'month' )->add( months => >> 1 ) >> }, >> ); >> >> Without the "optional span", I get: Can't call method "truncate" on an >> undefined value ... >> >> >>
> > >
-- Lee Goddard, BA (Hons), MSc www: LeeGoddard.net tel: 0208 369 6832 ltd: Server-side Systems ten: Ten years programming the net
Download lee.vcf
text/x-vcard 238b

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #20789] from_recurrence
Date: Tue, 1 Aug 2006 15:48:12 -0300
To: bug-DateTime-Set [...] rt.cpan.org
From: "Flavio S. Glock" <fglock [...] gmail.com>
Download (untitled) / with headers
text/plain 377b
2006/8/1, west.finchley@leegoddard.net via RT <bug-DateTime-Set@rt.cpan.org>: Show quoted text
> > Queue: DateTime-Set > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=20789 > > > Sorry Flavio, I thought I closed my own ticket: it was operator error. > But thanks for your fast reply - and your essential addition to DateTime! >
No problem, you are welcome! - Flavio S. Glock


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.