Quantcast
Viewing all articles
Browse latest Browse all 215

Date Calculator – Small Basic Sample Program

I wrote a date calculator program in Small Basic.  The program ID is JQQ629.

This program calculates days between two dates.  To calculate days, dates are converted to Julian days.

Image may be NSFW.
Clik here to view.
DateCalculator01_313

There are two convert subroutines DateToJD() and JDToDate().  To test these two subroutines, I wrote unit test subroutine UnitTest().  You can see the test if change “False” to “True” in line 9.


Viewing all articles
Browse latest Browse all 215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>