Khalid, you might want to check out the following URLs. The first
talks about the difficulty you talk about. The second provides an
algorithm for determining the visibility of the new moon (although it
is based in Makkah). The algorithm could easily be converted to perl,
and I imagine you'd find M$ use it. (although they might base it at
Bill's house, rather than Makkah :).
It would be excellent to see a DateTime::Calendar module for Hijri
dates, are you willing to do this? You could offer two dates:
Visibility at Makkah and local visibility. (You can get the local by
using the timezone offset in the provided algorithm).
1. http://www.rabiah.com/convert/introduction.html
2. http://www.geocities.com/couprie/calmath/islamic/visibility.html
Cheers!
Rick
At 2:32 PM +0300 30/5/03, Khalid A.S. wrote:
Subject: Hijri dates
Hello to you all... is there anybody that has found a way to get other
modes of dates such as Hijri using perl...!? there are other calendar
system that are not wildly used throughout the world but are still used
indeed. the hijri system is based on lunar calculations and is about ten
days less per year. It's main problem thought is that the month number of
days is unpredictable (based on the moon of course) Microsoft has
somehow
been able to figure out a way to calculate the hijri date and made it
available in Windows.
Please advice if you know of a way to get perl to provide Hijri dates..
Regards,
Khalid,,,
- Original Message -
From: "Rick Measham" <[EMAIL PROTECTED]>
To: "Ben Bennett" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, May 25, 2003 3:54 AM
Subject: Re: "local" timezone - no more offset only stuff
> >As a Redhat Sucker I figured I would give it a try (I did a full
> >refresh of the DateTime modules and upgraded my installed copies of
> >DateTime and DateTime::TimeZone). Below is the full output from
> >running the script, and below that are various pieces of info that
> >might help with debugging.
>
> Thanks Ben, that's a known problem (which I'm guessing you figured):
>
> On Tue, 20 May 2003, Rick Measham wrote:
> > I'm not sure about everyone else's RedHat but mine stores the
> > timezone in /etc/sysconfig/clock. Attached is a patch for TimeZone.pm
> > and for 04local.t
>
> At 2:22 PM -0500 24/5/03, Dave Rolsky wrote:
> >I've applied a variation of this patch. Can some Red Hat suckers^W,
ahem,
> >I mean users try this out ;)
>
> I'm guessing Dave is talking about the CVS version of TimeZone.pm so
> you might be best to grab that. Once a few of us 'suckers' test it
> out, Dave will release it to the world at large.
>
> Cheers!
> Rick
>
> --
>
> There are 10 kinds of people:
>those that understand binary, and those that don't.
>
>The day Microsoft makes something that doesn't suck
> is the day they start selling vacuum cleaners
>
> "Write a wise proverb and your name will live forever."
> -- Anonymous
>
>
--
There are 10 kinds of people:
those that understand binary, and those that don't.
The day Microsoft makes something that doesn't suck
is the day they start selling vacuum cleaners
"Write a wise proverb and your name will live forever."
-- Anonymous