For a church calendar, I would imagine you would have some Event objects
and some EventSets, if I understand these. Easter is an Event, Lent would
be an EventSet that stretches over several weeks. "Pentecost season" covers
the majority of the church year. The Apostle's Fast can last from a day to
a couple weeks, or not take place at all depending on when Easter falls
each year.

It would be useful to specify a given date, and return everything that's
"happening" or effective that day, i.e., these two saints are celebrated on
this date, plus it happens to be the middle of Lent, plus it's the
Leavetaking of the Feast of the Annunciation. (Several feasts have a
particular day, but last several days with the final day being the
"leavetaking" of that feast, at least in Orthodoxy.)

You would also want to be prepared to subclass
DateTime::Event::Church::Orthodox into regional jurisdictions like
Antiochian, Greek, and OCA, as occasionally these jurisdictions will choose
a different day to remember a particular saint, or will have saints unique
to their jurisdiction. This may be the case in the Catholic Church as well,
so you would subclass that too I suppose, especially for
Catholic::Byzantine. Some Orthodox jurisdictions appear to have different
dates for the same saint, but it often turns out they're the same "actual"
day, just that one gives the date in Gregorian calendar while the other
gives the date in the Julian calendar, so they look different.

Can't wait to see this implemented. :-)

Wes Sheldahl



Dave Rolsky <[EMAIL PROTECTED]> on 03/31/2003 02:02:22 AM

To:    Rick Measham <[EMAIL PROTECTED]>
cc:    [EMAIL PROTECTED]
Subject:    Re: DateTime::Event::WhateverItsCalled


On Mon, 31 Mar 2003, Rick Measham wrote:

> I don't know what to call this module. Basically it will return Roman
> Catholic Feasts. However it would be simple to extend it to return
Anglican
> (Church of England) and/or Orthodox Feasts and Celebrations.
>
> What I'm thinking is to distribute:
>    DateTime::Event::Church::Catholic.pm
>    DateTime::Event::Church::Anglican.pm
>    DateTime::Event::Church::Orthodox.pm
> Which will all basically just contain data that the main module
> (DateTime::Event::Church.pm) calls in. This would mean that you could
> possibly load all three. The three would have to make sure that they
didn't
> block each other with all their crazy rules.

Should this be ::Event or ::EventSet?  Also, should we replace "Church"
with "Religion" or something like that?  Alternately, we could go the
other way and replace "Church" with "Christian".

> What I'm wondering is: Is there a better (more compact, but still fast)
way
> to store this than in a perl data structure?

You could put it into your __DATA__ section and read it on load.  This'd
let you use a more human readable format, though honestly this looks okay
to me.

>         fixedmonth    => 1,
>         fixedday    => 25,

Those are two_words, not twowords ;)


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/





Reply via email to