Re: DateTime::Event::Easter Beta1

2003-03-24 Thread Martin Hasch
Hello Rick, On Mon, Mar 24, 2003 at 11:19:45AM +1100, Rick Measham wrote: Attached is the first Beta of DateTime::Event::Easter. Play with it. Poke it. If something doesn't work like you expect, or you want it to work differently, let me know. I appreciate the way your module tries to

Re: DateTime::Event::Sunrise Beta

2003-03-24 Thread fglock
Hill, Ronald wrote: I just completed the changed to the module. let me know if I need to change anything else. - maybe arguments should be 'longitude' instead of 'LON' ? - POD says 'DateTime::Astro::Sunrise' instead of 'DateTime::Event::Sunrise' - Flavio S. Glock

Re: ANNOUNCE: DateTime::Calendar::Julian 0.03

2003-03-24 Thread Rick Measham
At 11:13 AM -0500 24/3/03, [EMAIL PROTECTED] wrote: I'm not sure what exactly this means as far as naming goes, but at a minimum I would hope both formulas for Easter would be included and given equal prominence with regard to naming. Dave, I'm certainly glad you raised the question. :-) Easter in

Re: DateTime::Event::Easter Beta1

2003-03-24 Thread Rick Measham
At 8:46 PM +0100 24/3/03, Martin Hasch wrote: Hello Rick, On Mon, Mar 24, 2003 at 11:19:45AM +1100, Rick Measham wrote: Attached is the first Beta of DateTime::Event::Easter. Play with it. Poke it. If something doesn't work like you expect, or you want it to work differently, let me know. I

Re: DateTime::Event::Easter Beta1

2003-03-24 Thread Eugene van der Pijll
Rick Measham schreef: They're always around the same time as the western Easter, the Equinox doesn't change .. its still on Gregorian March 21st (or if they observe the astronomical equinox they *might* observe March 22nd), and they get the next Astronomical full moon after that which

Re: DateTime::Event::Easter Beta1

2003-03-24 Thread Eugene van der Pijll
By the way, I can't find the algorithm for Eastern Easter in Tondering's Calendar FAQ anymore. Here is a page with an excerpt of an older version of the algorithm: http://www.smart.net/~mmontes/ortheast.html . Eugene

RE: DateTime::Event::Sunrise Beta

2003-03-24 Thread Dave Rolsky
On Mon, 24 Mar 2003, Hill, Ronald wrote: - maybe arguments should be 'longitude' instead of 'LON' ? OK will do, same for all the args? Please do. In general, abbreviations make bad method and parameter names, because they're hard to remember. I know your module wants longitude and latitude,

Re: ANNOUNCE: DateTime::Calendar::Julian 0.03

2003-03-24 Thread wsheldah
There is some information on Easter algorithms here, with links to more: http://www.smart.net/~mmontes/ec-cal.html. Specific algorithms are discussed here (linked from above): http://www.smart.net/~mmontes/ortheast.html Some church history background on arriving at the method of calculating

Re: DateTime::Event::Easter Beta1

2003-03-24 Thread fglock
Eugene van der Pijll wrote: By the way, I can't find the algorithm for Eastern Easter in Tondering's Calendar FAQ anymore. Here is a page with an excerpt of an older version of the algorithm: http://www.smart.net/~mmontes/ortheast.html . Try this :)

Re: DateTime::Event::Easter Beta1

2003-03-24 Thread Rick Measham
On 25/3/03 8:16 am, Eugene van der Pijll at [EMAIL PROTECTED] spake thus: Rick Measham schreef: They're always around the same time as the western Easter, the Equinox doesn't change .. its still on Gregorian March 21st (or if they observe the astronomical equinox they *might* observe March

Re: MySQL input formats [was Re: ANNOUNCE: DateTime 0.08]

2003-03-24 Thread Joshua Hoblitt
On Fri, 21 Mar 2003, Dave Rolsky wrote: On Fri, 21 Mar 2003, Joshua Hoblitt wrote: I honestly don't see the point. I'm not trying to write code for use by MySQL itself ;) I just want to provide something that makes interfacing with MySQL easier. I often accept input, modify it

Re: Request for DateTime API addition: today() constructor

2003-03-24 Thread Joshua Hoblitt
On Mon, 24 Mar 2003, Tim Bunce wrote: On Sun, Mar 23, 2003 at 08:35:49PM +, Rich wrote: Rick Measham wrote: my $today = DateTime-now; $today-truncate(to = day); From memory, this would work for you .. I can't test it here: $today = DateTime-now-truncate(to = day);

Re: MySQL input formats [was Re: ANNOUNCE: DateTime 0.08]

2003-03-24 Thread Dave Rolsky
On Mon, 24 Mar 2003, Joshua Hoblitt wrote: I've given this some thought and I do indeed agree with your point of view. However now I think that there is a need for a separate module that accepts all same inputs as MySQL. :) My usage pattern involves a lot of massaging timestamps (often from

DateTime::Event API suggestion

2003-03-24 Thread fglock
DateTime::Event API suggestion, based loosely on the DateTime::TimeZone API: my $ev_sr = DateTime::Event-new( name = 'Sunrise/sunrise' ); my $ev_ss = DateTime::Event-new( name = 'Sunrise/sunset' ); my $ev_ea = DateTime::Event-new( name = 'Easter' ); my $dt_set = $ev_sr-as_set; my

Re: DateTime::Event::Easter Beta1

2003-03-24 Thread Martin Hasch
Hello Rick, On Tue, Mar 25, 2003 at 07:51:16AM +1100, Rick Measham wrote: At 8:46 PM +0100 24/3/03, Martin Hasch wrote: Hello Rick, On Mon, Mar 24, 2003 at 11:19:45AM +1100, Rick Measham wrote: Attached is the first Beta of DateTime::Event::Easter. Play with it. Poke it. If something

Re: MySQL input formats [was Re: ANNOUNCE: DateTime 0.08]

2003-03-24 Thread Joshua Hoblitt
If you want something like Date::Manip, how about writing Date::Parse::General or something like that, which would parse many different date formats (kind of like Graham Barr's Date::Parse or HTTP::Date, or Date::Manip itself)? Now that you've given me the idea I'll look into getting

quick benchmarks DT vs. Date::Manip

2003-03-24 Thread Joshua Hoblitt
Speaking of Date::Manip. :) -- #!/usr/bin/env perl use strict; use warnings; use DateTime; use DateTime::Format::MySQL; use Date::Manip (); use Benchmark qw(cmpthese); print Compare dates\n; cmpthese( -5, { DateTime = sub { my $dt1 = DateTime-now();

Announce: DateTime::Format::Builder 0.24 (release)

2003-03-24 Thread Iain Truskett
Hello everybody, I've just released 0.24 of DateTime::Format::Builder. You'll find it at your local CPAN eventually, in the CVS now, and also at http://perl.dellah.org/modules/ right now. It's still lacking tests. Docs need some work but I won't get a chance until Thursday night to look at

Re: quick benchmarks DT vs. Date::Manip

2003-03-24 Thread Dave Rolsky
On Mon, 24 Mar 2003, Joshua Hoblitt wrote: DateTime = sub { my $dt1 = DateTime-now(); $dt1-set_time_zone( '-1000' ); my $dt2 = DateTime::Format::MySQL-parse_datetime( 2000-05-10 15:15:00 ); my $dt_dur = DateTime::Duration-new(

Re: Announce: DateTime::Format::Builder 0.24 (release)

2003-03-24 Thread Dave Rolsky
On Tue, 25 Mar 2003, Iain Truskett wrote: I've just released 0.24 of DateTime::Format::Builder. Is something missing from the CVS version? There's no Makefile.PL, README, or any of that stuff. Kind of makes it hard to test ;) Also, any particular reason you put the pod in its own file? My

Re: Announce: DateTime::Format::Builder 0.24 (release)

2003-03-24 Thread Iain 'Spoon' Truskett
* Dave Rolsky ([EMAIL PROTECTED]) [25 Mar 2003 17:16]: On Tue, 25 Mar 2003, Iain Truskett wrote: I've just released 0.24 of DateTime::Format::Builder. Is something missing from the CVS version? There's no Makefile.PL, README, or any of that stuff. Kind of makes it hard to test ;) Depends

Re: Announce: DateTime::Format::Builder 0.24 (release)

2003-03-24 Thread Dave Rolsky
On Tue, 25 Mar 2003, Iain 'Spoon' Truskett wrote: Is something missing from the CVS version? There's no Makefile.PL, README, or any of that stuff. Kind of makes it hard to test ;) Depends if you're testing from CVS or from the release file =) I actually generate all the files other than

Re: Announce: DateTime::Format::Builder 0.24 (release)

2003-03-24 Thread Joshua Hoblitt
You'll find it at your local CPAN eventually, in the CVS now, and also at http://perl.dellah.org/modules/ right now. I synced my mirror a bit early so it's there for the CPAN inpatient. http://mirror.cpan.org/showmirror.cgi?name=aniani.ifa.hawaii.edu -J --

Re: quick benchmarks DT vs. Date::Manip

2003-03-24 Thread Joshua Hoblitt
And this could be sped up. Move making the duration object out of the sub, and make it like this: I was trying to be fair and not preserve information between runs. Of course in the real world... my $dt_dur = DateTime::Duration-new( days = -4 ); and inside the sub call add_duration