Re: DateTime::TimeZone issues...

2003-11-12 Thread Dave Rolsky
On Thu, 13 Nov 2003, Rob Mueller wrote: > The only way really to provide a fast (to initialize, and access) timezone > DB is to either provide a DB (e.g. CDB, SDBM, etc) with the module, or have > something in the make process that creates such a DB based on the DBM > modules available on the user

Re: [Fwd: DateTime::Duration patch]

2003-11-12 Thread Dave Rolsky
On Tue, 11 Nov 2003, Max Maischein wrote: > after some thinking about how to compare the "inconvertible" units, I > came up with an ugly hack that will work for "most" cases - the border > cases where it fails, are not yet detected, but I'm working on that. The > patch passes all my ad-hoc tests,

Re: DateTime::TimeZone issues...

2003-11-12 Thread Rob Mueller
<...> > > Having a look at the code, I noticed that each timezone has it's own class, > > and also a lot of data in perl structures. I'm not really sure why the > > timezone classes were developed this way, it seems fine for a simple case > > where you only need a couple of timezones, but in a case

Re: [Fwd: DateTime::Duration comparisions]

2003-11-12 Thread Dave Rolsky
On Tue, 11 Nov 2003, Max Maischein wrote: > I saw in the CHANGES file that you added some other delta_* methods, but > didn't find them in the documentation, so I don't know about these, and > was too lazy to delve into the source for this :-) These are for DateTime objects. I'm now regretting t

Re: DateTime::TimeZone issues...

2003-11-12 Thread Dave Rolsky
On Thu, 13 Nov 2003, Rob Mueller wrote: > ./perlbloat.pl 'use DateTime::TimeZone; $TZ{$_} = > DateTime::TimeZone->new(name => $_) for (DateTime::TimeZone::all_names)' > use DateTime::TimeZone; $TZ{$_} = DateTime::TimeZone->new(name => $_) for > (DateTime::TimeZone::all_names) added 12.7M But of c

DateTime::TimeZone issues...

2003-11-12 Thread Rob Mueller
Hi I help develop an email website (http://www.fastmail.fm) and recently we wanted to move over to providing proper timezone support for users (eg give us a location, and we'll keep the time up to date, rather than having to change for daylight savings every 6 months). As part of this, we were goi

[Fwd: DateTime::Duration patch]

2003-11-12 Thread Max Maischein
Hello again, this is the patch, which allows for DateTime::Duration comparisions. It has no error checking for the border cases (yet), but the patched module still passes all tests, so I consider that "good enough". It certainly is good enough for my cases where I have differences that always a

[Fwd: DateTime::Duration comparisions]

2003-11-12 Thread Max Maischein
This was originally to Dave directly. A second mail with a tentative patch that somewhat "fixes" the problem discussed below follows in a second mail (that I also sent to Dave directly and will forward separately). Please comment but CC me, as I don't follow the list! -max Original Me