Page 1 of 1

HB OLE - Generate GregoriaCalendar with the Movable Holidays

Posted: Wed Nov 05, 2008 5:08 am
by dhaine_adp
For more details, please see the source code comments.

function Main() in EasterCalc.Prg has been renamed to Main1()
You can also localized it to suit your location.

Re: HB OLE - Generate GregoriaCalendar with the Movable Holidays

Posted: Wed Nov 05, 2008 6:26 am
by Rathinagiri
Nice effort. Thank you dhaine_adp.

Re: HB OLE - Generate GregoriaCalendar with the Movable Holidays

Posted: Wed Nov 05, 2008 1:33 pm
by luisvasquezcl
Very interesting.
Thanks for your input.
Regards
Luis Vasquez

Re: HB OLE - Generate GregoriaCalendar with the Movable Holidays

Posted: Wed Nov 05, 2008 9:51 pm
by esgici
dhaine_adp wrote:For more details, please see the source code comments.

function Main() in EasterCalc.Prg has been renamed to Main1()
You can also localized it to suit your location.
Hi Dany

Thanks, very nice :)

Your revision history very interesting and your code-commenting style is very satisfying.

Especially your HB OLE work, programatically building an Excell sheet is impressive.

I hope that this will be a good example and starting point for developing a generic and versatile .dbf to .xls conversion routine/module.

By the way, have you a plan for working on Lunar Calendar ?

Thanks and greetings.

Regards
--

esgici

Re: HB OLE - Generate GregoriaCalendar with the Movable Holidays

Posted: Thu Nov 06, 2008 11:20 am
by fchirico
dhaine_adp wrote:For more details, please see the source code comments.

function Main() in EasterCalc.Prg has been renamed to Main1()
You can also localized it to suit your location.
simply, a genius !

Is very original.

Regards, Fernando Chirico.

Re: HB OLE - Generate GregoriaCalendar with the Movable Holidays

Posted: Thu Nov 06, 2008 10:23 pm
by jortega
Good job
Thank you dhaine_adp.
Regards.
:) Juan Ortega :)

Re: HB OLE - Generate GregoriaCalendar with the Movable Holidays

Posted: Thu Nov 06, 2008 10:36 pm
by Roberto Lopez
dhaine_adp wrote:For more details, please see the source code comments.

function Main() in EasterCalc.Prg has been renamed to Main1()
You can also localized it to suit your location.
Wow!

Amazing work!!!

Regards,

Roberto.

Re: HB OLE - Generate GregoriaCalendar with the Movable Holidays

Posted: Sat Nov 08, 2008 8:19 am
by dhaine_adp
Dear all:

Thank you very much for your appreciation, really, it's very inspiring.

To Esgici:

There are many algorithm in calculating the lunar calendar, like for example the Kuwaiti Algorithm used by Microsoft to calculate Hegira dates. Lunar calendar used by Chinese, Vietnamese and by Jewish. Would you mind to clarify which lunar calendar are we talking about?

Take note that Islamic lunar calendar used in Saudi Arabia is used mainly as civil calendar meaning they are not using it for religious purposes. To determine the begining of Ramadan, they rely on visible sightning of the crescent moon. At midnight if they sighted the moon anyone will call/or inform the nearest Mosque regarding the sigthing of the crescent moon. That would marked the beginning of Ramadan. So on the civil calendar the Begining of Ramadan is just a tentative which moved accordingly to the sighting of the moon. So as you can see they spend a week or more to watch the sky for seeing the moon.

On the otherhand, calculating the phases of the moon(full moon, new moon, waxing gibous, waxing crescent, waning gibous, waning crescent) uses a different set of algorithm much like the algorithm of calculating the sunrise and sunset. However in triangulating/calculating the position is little more complicated because of fast movement of the moon that revolves around the earth as compared with earth revolves around the sun.

Thanks,

Danny

Re: HB OLE - Generate GregoriaCalendar with the Movable Holidays

Posted: Mon Nov 10, 2008 2:21 am
by esgici
dhaine_adp wrote:
To Esgici:
...
Would you mind to clarify which lunar calendar are we talking about?
...
Danny
Hi Danny

I am talking about a calendar allowing converting dates from "Hegira" to "Gregorian" and viceversa.

No matter this or that people take Lunar Calendar this or that way, moon is a physical object and depends
absolute rules. So all of its motions are calculate-able.

For example in my country beginning of Ramadan and other Islamic days always calculated by scientific methods.

BTW, we are using Lunar Calendar for religious and historical purposes only.

Thanks for your interest.

Regards.

--

esgici

Re: HB OLE - Generate GregoriaCalendar with the Movable Holidays

Posted: Mon Nov 10, 2008 5:37 am
by dhaine_adp
I am talking about a calendar allowing converting dates from "Hegira" to "Gregorian" and viceversa.

Hi Esgici

Oh, Ok I got your point. Give me a little time regarding this. I'll post the code here so that we can test the conversion.


Thanks,

Danny