Re: Problems with (and patch for) February 30th in t/006_locales.t in DateTime::Format::Strptime 1.06

2004-09-01 Thread Bruce Van Allen
On 8/31/04 Dave Rolsky wrote: >On Tue, 31 Aug 2004, Rick Measham wrote: >> At 9:33 am -0700 2004-08-30, Jonathan Leffler wrote: >> >It looks like the test is trying to use February 30th. My >> >impression is that the problem is in the test, not the module being >> >tested. >> Dave, this looks more

Re: Problems with (and patch for) February 30th in t/006_locales.t in DateTime::Format::Strptime 1.06

2004-09-01 Thread Rick Measham
At 2:51 pm -0700 2004-09-01, Bruce Van Allen wrote: Pace that, the list had extensive discussion early on about specifying end-of-month handling when doing date calcs. Hence the 'wrap', 'limit', and 'preserve' modes for the end_of_month parameter in DT::Duration. Absent such a parameter, no date ca

RE: Problems with (and patch for) February 30th in t/006_locales.t in DateTime::Format::Strptime 1.06

2004-09-01 Thread Ofer Nave
> -Original Message- > From: Rick Measham [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 01, 2004 3:07 PM > To: Bruce Van Allen; [EMAIL PROTECTED] > Cc: Dave Rolsky > Subject: Re: Problems with (and patch for) February 30th in > t/006_locales.t in DateTime::Format::Strptime 1.06 >

Re: new fan has questions/comments/suggestions

2004-09-01 Thread Dave Rolsky
On Fri, 6 Aug 2004, Daisuke Maki wrote: > I'd prefer being able to pass a formatter: > >http://marc.theaimsgroup.com/?l=perl-datetime&m=108995979225140&w=2 > > Then if your formatter supports strftime notation, you could just do > >my $dt = DateTime->new( ..., > formatter => My::Forma

Re: Leap seconds / time zone bug in DateTime.pm

2004-09-01 Thread Dave Rolsky
On Fri, 6 Aug 2004, Eugene van der Pijll wrote: > I've attached a patch for the test files. I haven't looked into the > DateTime.pm code, because both leap second and the time zone handling > code are just too scary! I checked this patch in. I'll try to fix this soon. -dave /*

Re: Formatters and DateTime subclasses

2004-09-01 Thread Dave Rolsky
On Thu, 15 Jul 2004, Michael G Schwern wrote: > Let's say I've got a simple DateTime subclass with some local extras > attached: > > package My::DateTime; > use base 'DateTime'; > > sub first_of_the_month { > my $self = shift; > $self->set(day => 1); > } > > How do I ge

[PATCH] Re: new fan has questions/comments/suggestions

2004-09-01 Thread Daisuke Maki
There's really no huge problem. DateTime.pm would just have to skip the relevant tests if a given formatter wasn't installed. Since this would be an optional feature, it'd be okay, I think. Anyway, patches are still welcome. I don't really need this, so I don't think I'll be implementing it mys

Re: Formatters and DateTime subclasses

2004-09-01 Thread Rick Measham
On 2 Sep 2004, at 2:21 PM, Dave Rolsky wrote: On Thu, 15 Jul 2004, Michael G Schwern wrote: How do I get the DateTime::Format modules to return My::DateTime objects instead of DateTime? Doesn't look like anyone ever responded. There is no way to do this currently. You can always just jam the met

Re: Formatters and DateTime subclasses

2004-09-01 Thread Rick Measham
On 2 Sep 2004, at 2:51 PM, Rick Measham wrote: It'd be really ugly to do stuff like: $dt = $strptime->parse_datetime( $string, asa => 'My::DateTime' ); But we could do something similar with just a change in DateTime itself. We have a 'from_object' constructor -- How about adding an 'asa' metho

French translation of DateTime:xxx pods: available

2004-09-01 Thread Jean Forget
I have translated a few DateTime pods into French and they are available on : http://datetime.mongueurs.net/ Also available on this website, a list of various events that took place during the French Revolution, especially during the period when the French Revolutionary calendar was in effect. T