Re: Cron with TimeZone

2004-06-18 Thread Matt Sisk
Tim, As I said in response to your other email, the various next/previous/iterator methods should respect the time zone of the datetime object that you pass to them, so this should work: my $cron = DateTime::Event::Cron-from_cron(cron = '* * * * *'); my $now = DateTime::Event-now(time_zone =

Re: Cron with TimeZone

2004-06-18 Thread Matt Sisk
Hmm, Disregard the last note regarding the undefined value message -- buggy code without using warnings is to blame. Thanks, Matt

Re: Cron with TimeZone

2004-06-18 Thread Flavio S. Glock
Matt Sisk wrote: So I have a couple of questions: 1) why isn't that method a mutator? just curious There are no mutators in Date::Set, everything is functional. ( Version 0.14 introduced a few mutators, but they were rolled back in version 0.15 ) 2) are datetimes from other time zones

Re: Cron with TimeZone

2004-06-18 Thread Dave Rolsky
On Fri, 18 Jun 2004, Matt Sisk wrote: $events-set_time_zone( 'Europe/Berlin' ); I found this a bit confusing -- when I RTFM I discovered that this last line should be: $new_events = $events-set_time_zone( 'Europe/Berlin' ); So I have a couple of questions: 1) why isn't that

Re: Cron with TimeZone

2004-06-18 Thread Dave Rolsky
On Fri, 18 Jun 2004, Flavio S. Glock wrote: Matt Sisk wrote: So I have a couple of questions: 1) why isn't that method a mutator? just curious There are no mutators in Date::Set, everything is functional. ( Version 0.14 introduced a few mutators, but they were rolled back in