DateTime::Set set_time_zone fix

2004-07-01 Thread Flavio S. Glock
Thanks to Tim Mueller-Seydlitz and Matt Sisk, who found a couple of bugs in the DateTime::Set time zone handling. I'd like to have some feedback from you, before I put the fixed version on CPAN. You can get the new version from CVS, or send me a mail and I'll send you a tar file. You'll need

Re: DateTime::Set set_time_zone fix

2004-07-01 Thread Flavio S. Glock
I'm doing some tests with the revised version of DateTime::Set: [EMAIL PROTECTED] wrote: > > use DateTime::Event::Cron; > > $cron = DateTime::Event::Cron->from_cron(cron => ' 15 18 * * 1-5'); > $new_cron = $cron->clone()->set_time_zone('Europe/Berlin'); > > $date = DateTime->new( year => 2004,

"localtime" DateTime Objects

2004-07-01 Thread Max Campos
All I want is simple "local time" date time manipulation without having to deal with timezones. However, as illustrated below, I'm getting some weird (GMT?) results. Is this correct behavior? I'm using stock Red Hat 9 perl 5.8.0. = use DateTime; print "DATE: " . `date`;

Re: "localtime" DateTime Objects

2004-07-01 Thread Rick Measham
On 2 Jul 2004, at 7:13 AM, Max Campos wrote: All I want is simple "local time" date time manipulation without having to deal with timezones. However, as illustrated below, I'm getting some weird (GMT?) results. Is this correct behavior? I'm using stock Red Hat 9 perl 5.8.0. =

Re: "localtime" DateTime Objects

2004-07-01 Thread Bruce Van Allen
On 7/2/04 Rick Measham wrote: >DateTime->now() returns a UTC time unless given a time zone. >On the other hand, DateTime->new() returns the local time zone unless >otherwise instructed. > >Dave, can you enlighten me as to why this is the case? Shouldn't all >constructors that don't have a time_

Re: "localtime" DateTime Objects

2004-07-01 Thread Dave Rolsky
On Fri, 2 Jul 2004, Rick Measham wrote: > > print "DTABS: " . new DateTime(month => 7, day => 1, year => 2004, > > hour => 14) . "\n"; > > On the other hand, DateTime->new() returns the local time zone unless > otherwise instructed. No it doesn't. It uses floating. > Dave, can you enlighten me

Re: "localtime" DateTime Objects

2004-07-01 Thread fglock
> On Fri, 2 Jul 2004, Rick Measham wrote: > > I'd also like to see a class based (rather > > than object based) ability > > to set the local time zone, probably through > > the import: > > > > use DateTime local => 'Australia/Melbourne'; > > > > Then all constructors would use that as the > > lo

Re: "localtime" DateTime Objects

2004-07-01 Thread Rick Measham
On 2 Jul 2004, at 10:04 AM, Dave Rolsky wrote: On Fri, 2 Jul 2004, Rick Measham wrote: print "DTABS: " . new DateTime(month => 7, day => 1, year => 2004, hour => 14) . "\n"; On the other hand, DateTime->new() returns the local time zone unless otherwise instructed. No it doesn't. It uses floating.