PlanetSquires Forums

Support Forums => General Board => Topic started by: Richard Kelly on December 05, 2017, 01:40:24 AM

Title: cCalendar Version 1.01
Post by: Richard Kelly on December 05, 2017, 01:40:24 AM
The problem with LunarIllumination was obscure and obtuse. I visited and revisited it many times over the past 3-4 months before my pea brain understood....

Currently working on increasing the accuracy of the lunar and solar calculations to be better aligned with each other. I'll clean up the compiler warnings at that time as well.

Version 1.01

1. Renamed cCalendar.inc to cCalendar.bi
2. FB include folder cCalendar added
3. Function LunarIllumination added

https://github.com/breacsealgaire/Calendar_Calculations-Freebasic (https://github.com/breacsealgaire/Calendar_Calculations-Freebasic)
Title: Re: cCalendar Version 1.01
Post by: José Roca on December 06, 2017, 01:50:20 AM
Hi Richard,

There are still parameters without an explicit BYVAL/BYREF and there are many mixed operands not supported by version 1.05 (this has been fixed in version 1.06). I advise you to compile using the -w pedantic option.

I have fixed these issues in the attached file. If you don't fix it, your code risks to be ignored.
Title: Re: cCalendar Version 1.01
Post by: Richard Kelly on December 07, 2017, 11:30:59 PM
Quote from: Jose Roca on December 06, 2017, 01:50:20 AM
Hi Richard,

There are still parameters without an explicit BYVAL/BYREF and there are many mixed operands not supported by version 1.05 (this has been fixed in version 1.06). I advise you to compile using the -w pedantic option.

I have fixed these issues in the attached file. If you don't fix it, your code risks to be ignored.

That surely was generous of you Jose. I knew about the warnings and had yet to clean them up. GitHub updated and the change log noted with you as a contributor.

I know cCalendar is a 'niche' piece of software and never expect it will get any serious use. GitHub is my 'offsite' repository for backups.....

Rick Kelly
Title: Re: cCalendar Version 1.01
Post by: Richard Kelly on June 27, 2018, 12:27:57 AM
Version 1.10 now available on GitHub

https://github.com/breacsealgaire/Calendar_Calculations-Freebasic (https://github.com/breacsealgaire/Calendar_Calculations-Freebasic)

Changes Made:

1. Added support for Samaritan calendar
2. Higher precisions for astronomical calculations
3. Separation of functions for moonrise and moonset
4. Additional support for Daylight Savings adjustments
5. Location support added to Function LunarIllumination
6. Support functions cmApparentFromUniversal and cmUniversalFromApparent added