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
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
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
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
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
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
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,
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
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 :)
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
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
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);
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,
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
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
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
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();
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
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(
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
* 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
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
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
--
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
24 matches
Mail list logo