Calendar Calculations Class for Windows

User projects written in or related to FreeBASIC.
rpkelly
Posts: 44
Joined: Sep 03, 2016 22:36

Calendar Calculations Class for Windows

Postby rpkelly » Dec 05, 2017 5:23

Calendar date and time calculations on GitHub at:

[url]
https://github.com/breacsealgaire/Calen ... -Freebasic
[/url]

cCalendar_Test_Script3.txt updated to remove lunar illumination function. This function returned inconsistent results using the algorithm from Jean Meeus's book Astronomical Algorithms, Chapter 48, page 345.

*** Update ***

Finally figured out the lunar illumination function. I had to 'normalize' the lunar phase to the range 0 - 180 degrees.

Version 1.01

1. Renamed cCalendar.inc to cCalendar.bi
2. FB include folder cCalendar added
3. Function LunarIllumination added
paul doe
Posts: 535
Joined: Jul 25, 2017 17:22
Location: Argentina

Re: Calendar Calculations Class for Windows

Postby paul doe » Dec 06, 2017 10:50

This is super useful stuff, as well as being an amazing work. Thanks for sharing!
rpkelly
Posts: 44
Joined: Sep 03, 2016 22:36

Re: Calendar Calculations Class for Windows

Postby rpkelly » Dec 08, 2017 3:04

There were still parameters without an explicit BYVAL/BYREF and there were mixed operands not supported by version 1.05 (fixed in version 1.06) which have been addressed via CLNG.

Compiled with 32/64 FB versions 1.05 and 1.06.

I also noted I labeled the class as for WIndows. Since I only develop for Windows, I don't know if other platforms are compatible.

GitHub updated to version 1.02.
rpkelly
Posts: 44
Joined: Sep 03, 2016 22:36

Re: Calendar Calculations Class for Windows

Postby rpkelly » Dec 08, 2017 3:10

paul doe wrote:This is super useful stuff, as well as being an amazing work. Thanks for sharing!


You're welcome! I first wrote most of the class with MASM32 in 1997, ported it to Paradox ObjectPal, ported it to Powerbasic, and now this FB version which is the latest incarnation with all the latest calendar stuff I have accumulated over the years. I have another big push planned in 2018.

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 4 guests