Re: Name for DateTime::Format::Simple

2003-07-18 Thread John Siracusa
On Friday, July 18, 2003, at 11:20 PM, Ben Bennett wrote: I am not a big fan of DateTime::Format::Simple either. My best suggestions are: DateTime::Format::Basic Common Generic Localized I'd say it's between Basic and Common. A more accurate n

Re: Very rough DateTime::Format::Simple

2003-07-18 Thread John Siracusa
On Friday, July 18, 2003, at 11:17 PM, Ben Bennett wrote: - Suggestions of additional formats to parse would be greatly appreciated Ooo, and didn't you also forget "now"? -John

Re: Very rough DateTime::Format::Simple

2003-07-18 Thread John Siracusa
Looks good so far! :) - Suggestions of additional formats to parse would be greatly appreciated ...or so you'd think! +/-infinity...pretty please? :) -John

Date formats and strptime...

2003-07-18 Thread Ben Bennett
DateTime::Locale defines 4 lengths for dates and times (full, long, medium, and short), defines which date format length is the default one and which time one is the default. It also defines whether the date preceeds the time or not. With all of this info, I think it would be nice to be able to

Re: RFC: DateTime::Complex

2003-07-18 Thread fglock
Eugene van der Pijll wrote: > > I would prefer if this: > > DateTime::Incomplete->new( year => 2003 ); > > would create the incomplete dt > 2003-xx-xxTxx:xx:xx; that is: the > defaults of the DT::I constructor should be > 'unknown'. That simplifies the creation of DT::I > objects, and is t

Name for DateTime::Format::Simple

2003-07-18 Thread Ben Bennett
I am not a big fan of DateTime::Format::Simple either. My best suggestions are: DateTime::Format::Basic Common Generic Localized Can anyone come up with anything better? -ben

Very rough DateTime::Format::Simple

2003-07-18 Thread Ben Bennett
Sorry this is such a dense post, but this module spawned a lot of discussion and deciding what a simple format turned out to be not so simple. Anyway, if you want to play with this, make sure you look at the note about regenerating the DT::Locale data. If people are okay with the general directio

Re: DT::TZ renaming

2003-07-18 Thread Joshua Hoblitt
> I don't really see a strong reason to rename the module. It just feels inconsistent to me. It'll be easier to rename now then after someone is using it. -J --

Re: RFC: DateTime::Complex

2003-07-18 Thread Eugene van der Pijll
Flavio S. Glock schreef: > First release of DateTime::Incomplete ! > > http://www.ipct.pucrs.br/flavio/perl/DateTime-Incomplete-0.00_01.tar.gz > > It is incomplete, of course. Very much so... I would prefer if this: DateTime::Incomplete->new( year => 2003 ); would create the incomplete d

Re: DT::TZ renaming

2003-07-18 Thread Dave Rolsky
On Fri, 18 Jul 2003, Joshua Hoblitt wrote: > > > Since much of DT::TZ is being renamed how about changing > > > DT::TimeZoneCatalog to DT::TimeZone::Catalog? I think it would feel a > > > little more orthogonal with the other naming conventions. > > > > Huh? None of it's being renamed. > > You'v

Re: DT::TZ renaming

2003-07-18 Thread Joshua Hoblitt
> > Since much of DT::TZ is being renamed how about changing > > DT::TimeZoneCatalog to DT::TimeZone::Catalog? I think it would feel a > > little more orthogonal with the other naming conventions. > > Huh? None of it's being renamed. You've renamed a lot of variables. :) -J --

Re: RFC: DateTime::Complex

2003-07-18 Thread Flavio S. Glock
Ben Bennett wrote: > For the name, my thoughts are: > DT::Partial > DT::Incomplete > DT::Reduced First release of DateTime::Incomplete ! http://www.ipct.pucrs.br/flavio/perl/DateTime-Incomplete-0.00_01.tar.gz It is incomplete, of course. - Flavio S. Glock

RE: Re perl SQL daylight saving problem

2003-07-18 Thread Hill, Ronald
Hi Arno, [snipped] > Dear Sirs > Please help. > > My problem is that when reading data from the Data Base via > Perl script all extracted dates remain unchanged by > Perl except dates within Daylight Savings periods. How are you extracting the dates? Are you using DBI? Are you using the sql

Re: RFC: DateTime::Complex

2003-07-18 Thread Flavio S. Glock
Ben Bennett wrote: > > What were your thoughts on the constructor? I think people expect a > new, but are unspecified things 0 (like DateTime) or undefined? new() could be just like DateTime->new, while whatever() defaults to -xx-xxTxx:xx:xx > Also, what happens when you compare dates (or i

Re: RFC: DateTime::Complex

2003-07-18 Thread Ben Bennett
What were your thoughts on the constructor? I think people expect a new, but are unspecified things 0 (like DateTime) or undefined? Also, what happens when you compare dates (or is that simply not defined?). Now that I think about it, you will probably need contains, intersects, etc. But I assu

Re: DT::TZ renaming

2003-07-18 Thread Dave Rolsky
On Thu, 17 Jul 2003, Joshua Hoblitt wrote: > Since much of DT::TZ is being renamed how about changing > DT::TimeZoneCatalog to DT::TimeZone::Catalog? I think it would feel a > little more orthogonal with the other naming conventions. Huh? None of it's being renamed. -dave /*=

Re: RFC: DateTime::Complex

2003-07-18 Thread Flavio S. Glock
Yes, this is better: $dtc1->set( month => 12 ); $dtc1->set( month => undef ); It can work without cloning, in order to be compatible with DateTime API. Name - how about DateTime::Whatever ? (I like it) $date = DateTime::Whatever->whatever( year => 2003 ); # 2003-xx-xxTxx:xx:xx $

Re: RFC: DateTime::Complex

2003-07-18 Thread Ben Bennett
I like the idea (this is the partial date & time thing right?) but I am not too sure about the name... unless you start dealing with times with real and imaginary parts :-) (Not that I have any suggestions for a name yet). Regarding the interface would it be better to have: -- my $dtc1 = DateTim

FW: Problems installing on Win32.

2003-07-18 Thread Nick Porter
PPM choked on Class-Factory-Util when following dependencies and quit to the c:\ prompt so I had to install it by itself, after which, 'install DateTime' installed the module and the rest of the dependents without a problem. Much thanks to you Ron and everyone else who's working on this project.

Re: Need help from Aussies for time zone stuff

2003-07-18 Thread Iain Truskett
* Ben Bennett ([EMAIL PROTECTED]) [18 Jul 2003 22:04]: > Do they call the standard and summer times different things? > The current DT::TZ stuff and POSIX::strftime and date on > Linux and Solaris all say EST in January and July... I > have also seen it given as EAST and EADT (actually I just > c

RFC: DateTime::Complex

2003-07-18 Thread Flavio S. Glock
RFC: DateTime::Complex use DateTime; use DateTime::Complex; use strict; my $dtc1 = DateTime::Complex->new_undef; my $dtc2 = $dtc1->define_month( 12 ); my $christmas = $dtc2->define_day( 24 ); my $december = $christmas->undef_day; print $december->datetime; # -12-xxTxx:xx:

Re: Need help from Aussies for time zone stuff

2003-07-18 Thread Ben Bennett
Do they call the standard and summer times different things? The current DT::TZ stuff and POSIX::strftime and date on Linux and Solaris all say EST in January and July... I have also seen it given as EAST and EADT (actually I just checked www.worldtimezone.com and it gives AEST, AES, EAST and EST

RE: Problems installing on Win32.

2003-07-18 Thread Nick Porter
Ron, that would make everything so much easyer. Yes I'm using 5.8.0. Although DateTime was the only one I couldn't get to install. DateTime::TimeZone and DateTime::LeapSecond went in without a hitch. -- np > -Original Message- > From: Hill, Ronald [mailto:[EMAIL PROTECTED] > Sent: 17 July

DT::TZ renaming

2003-07-18 Thread Joshua Hoblitt
Since much of DT::TZ is being renamed how about changing DT::TimeZoneCatalog to DT::TimeZone::Catalog? I think it would feel a little more orthogonal with the other naming conventions. -J --