Re: DateTime::Duration, length of a month?

2003-04-05 Thread Yitzchak Scott-Thoennes
On Sat, 5 Apr 2003 12:05:15 +0200, [EMAIL PROTECTED] wrote: >Joshua Hoblitt schreef: >> When converting a DateTime::Duration month to days - how many days >> should it be considering equivalent too? 30? 30.4? 31? > >If you want to do this, you have to take into account that a duration of >$x years

Re: DateTime::Duration compare

2003-04-05 Thread fglock
Dave Rolsky wrote: > I thought about this a > bit more and realized I don't really like it, because it special cases one > number, zero. But comparing it to other numbers wouldn't make sense. Ok. Maybe a $dt_dur->is_zero() method instead? - Flavio S. Glock

ANNOUNCE: DateTime 0.09

2003-04-05 Thread Dave Rolsky
No particular reason for this release, just an accumulation of improvements and fixes. 0.09 2003-04-05 (the "liberation through violence" release) [IMPROVEMENTS] - As requested by numerous people, there is now a pure Perl implementation of DateTime.pm included with this distribution. If yo

Re: invitation to DateTime module authors

2003-04-05 Thread Rich Bowen
On Fri, 4 Apr 2003, Dave Rolsky wrote: > If you're written a DateTime module and you'd like to have it be part of > the perl-date-time CVS project, this is in invitation to join. > > The advantages are: > > - shared CVS, which means you can edit the website (particularly them > module list), dev d

Re: RFC: DateTime::Event::Basic

2003-04-05 Thread fglock
.. or maybe "DateTime::Event::Base" Dave wrote: > I think the problem is that this (AFAICT) forces > all events to be dealt with as sets internally, > which may not be what many module authors want > to do. No, that's not the idea. What I propose is a common API. If the module author wants to

ANNOUNCE: DateTime::Format::ICal 0.03

2003-04-05 Thread Dave Rolsky
0.03 2003-04-05 - Handle offset-only time zones without producing garbage output. Bug report from Iain Truskett. - Switch to Module::Build. -dave /*=== House Absolute Consulting www.houseabsolute.com ===*/

Re: Announce: DateTime-Format-Builder 0.25

2003-04-05 Thread Dave Rolsky
On Mon, 31 Mar 2003, Joshua Hoblitt wrote: > I started implementing all of ISO8601:2000 last night with Builder.pm. > After looking at the pod for awhile I started thinking that this could > be simplified [and optimized] a little if you don't mind dirtying the > namespace. > > Some POEish like thi

Re: Bug in epoch handling [patch]

2003-04-05 Thread Dave Rolsky
On Tue, 1 Apr 2003, Iain 'Spoon' Truskett wrote: > * Iain 'Spoon' Truskett ([EMAIL PROTECTED]) [01 Apr 2003 13:18]: > > > Adding and subtracting small durations doesn't appear to > > affect the epoch. I tried adding a line to recalculate it, > > but that just seemed to screw things up elsewhere. >

Re: make test in DateTime-TimeZone-0.11 vs. perl Makefile.PL in DateTime-0.08

2003-04-05 Thread Dave Rolsky
On Wed, 2 Apr 2003, David Dyck wrote: > If I install DateTime::TimeZone without testing it first, > I can then do a make test and install in DateTime before > going back to DateTime::TimeZone for the make test and install. > > The README in DateTime-TimeZone-0.11 states > This distribution is

Re: RFC: DateTime::Event::Basic

2003-04-05 Thread Dave Rolsky
On Thu, 3 Apr 2003, Flavio S. Glock wrote: > Flavio S. Glock wrote: > > DateTime::Event::Basic - A base class for building Event classes. > > Ok, I think I'll explain this a bit more: > For example, DateTime::Event::Sunset would be simplified to: > > @ISA = qw( DateTime::Event::Basic ); > > su

Re: Time::Local (was: Bundle::DateTime)

2003-04-05 Thread Dave Rolsky
On Fri, 4 Apr 2003, Iain 'Spoon' Truskett wrote: > Are there details of how MakeMaker and CPAN.pm treat 0 and undef in > prereqs? It's treated as "any version". -dave /*=== House Absolute Consulting www.houseabsolute.com ===*/

Re: DateTime::Duration, length of a month?

2003-04-05 Thread Rick Measham
At 12:05 PM +0200 5/4/03, Eugene van der Pijll wrote: Problem with the Mayan calendar: it has no years either... But one of the smaller counts (haab) is 365 days long, I believe. So that is probably the Mayan idea of a year. (As usual) I disagree with Dave: some people would find it useful to use d

Re: DateTime::Duration, length of a month?

2003-04-05 Thread Eugene van der Pijll
Joshua Hoblitt schreef: > When converting a DateTime::Duration month to days - how many days > should it be considering equivalent too? 30? 30.4? 31? If you want to do this, you have to take into account that a duration of $x years is translated to 12*$x years internally. If your calendar has no m