Matt Sisk schreef:
> At some point there was discussion of a Hijri calendar on this mailing 
> list, but I'll be darned if I can find the references.

Are you sure? I can't find any discussion (googling on e.g. "islamic
perl datetime" finds only one or two posts), and I can't find anything in
my 'sent' folder, and I'm almost sure I would have mailed in such a
discussion.

There was a mention of the Hejira calendar in a discussion on Business
dates; perhaps that's what you remember? Or the Jalali (Persian)
calendar is similar to the Hegira calendar, maybe that was it?

> Anyway, there's some code posted out on perlmonks pertaining to Hijri 
> calendar conversions. I have no idea of the accuracy and it doesn't 
> involve DateTime. Perhaps Alex could be persuaded to work on a DateTime 
> implementation:

It probably is accurate; but there are several (different) algorithms to
calculate Hejira dates, used by different countries, and all of these
are only approximations of the true dates, which are based on
observations of the new moon. So we should be careful when we announce a
module for _the_ DT::Cal::Hidjra.

If necessary, I'm willing to help converting it to a DateTime module;
it's not that difficult, as the Gregorian<=>Hijrah conversion in Alex'
module is already done via an absolute (rata-die) date.

Eugene

Reply via email to